-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
102 lines (102 loc) · 2.63 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
repos:
- repo: local
hooks:
- id: check-yaml
name: check-yaml
entry: check-yaml
language: system
types: [ yaml ]
- id: check-case-conflict
name: check-case-conflict
entry: check-case-conflict
language: system
- id: codespell
name: codespell
entry: codespell
language: system
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
language: system
types: [ text ]
- id: cog
name: cog
entry: cog
language: system
types: [ markdown ]
require_serial: true
args: [ -r, "README.md", ]
- id: debug-statements
name: debug-statements
entry: debug-statement-hook
language: system
types: [ python ]
- id: black
name: black
entry: black
language: system
types: [ python ]
require_serial: true
args: [ # black ignores files in .gitignore by default
--line-length, "100",
--target-version, "py37",
workedon, tests
]
- id: isort
name: isort
entry: isort
language: system
types_or: [ cython, pyi, python ]
require_serial: true
args: [
--profile, black,
--skip-gitignore,
--force-sort-within-sections,
--line-length, "100",
--section-default, THIRDPARTY,
--filter-files,
--project, workedon, tests
]
- id: flake8
name: flake8
entry: flake8
language: system
types: [ python ]
require_serial: true
- id: pyupgrade
name: pyupgrade
description: Automatically upgrade syntax for newer versions.
entry: pyupgrade
language: system
types: [ python ]
args: [ --py37-plus ]
- id: refurb
name: refurb
description: A tool for refurbishing and modernizing Python codebases.
entry: refurb
language: system
types: [ python ]
args: [ --python-version, "3.7" ]
- id: bandit
name: bandit
entry: bandit
language: system
types: [ python ]
require_serial: true
args: [
-lll,
-n, "3",
-r,
-x, "venv/*,setup.py,tests/*"
]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.33.0
hooks:
- id: markdownlint
name: markdownlint
entry: markdownlint
language: node
types: [ markdown ]
args: [
--fix,
]