-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
54 lines (53 loc) · 1.57 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-case-conflict
- id: check-ast
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-vcs-permalinks
- id: check-xml
- id: detect-private-key
- id: pretty-format-json
- id: requirements-txt-fixer
- id: sort-simple-yaml
- id: mixed-line-ending
- id: debug-statements
- id: pretty-format-json
args: ['--autofix']
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [
flake8-bandit,
flake8-blind-except,
flake8-breakpoint,
flake8-bugbear,
flake8-builtins,
flake8-class-newline,
flake8-comprehensions,
flake8-debugger,
flake8-logging-format,
flake8-polyfill,
flake8-quotes,
flake8-string-format,
flake8-markdown,
]
args: ['--max-line-length=160', '--ignore=E121,E123,E125,E501,F401,F403,W503', '--exclude=test.py']
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0 # Use the ref you want to point at
hooks:
- id: python-no-log-warn
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: ['--py36-plus']