|
1 | 1 | repos: |
2 | | - |
3 | | - - repo: https://github.com/pycqa/isort |
4 | | - rev: 5.5.4 |
5 | | - hooks: |
6 | | - - id: isort |
7 | | - args: [ --multi-line=3, --trailing-comma, --force-grid-wrap=0, --use-parentheses, --line-width=88] |
8 | | - |
9 | | - - repo: https://gitlab.com/pycqa/flake8 |
10 | | - rev: 3.8.4 |
11 | | - hooks: |
12 | | - - id: flake8 |
13 | | - additional_dependencies: ["flake8-eradicate==0.4.0"] |
14 | | - args: [--max-line-length=89] |
15 | | - |
16 | | - |
17 | | - - repo: https://github.com/asottile/pyupgrade |
18 | | - rev: v2.7.2 |
19 | | - hooks: |
20 | | - - id: pyupgrade |
21 | | - args: [--py36-plus] |
22 | | - |
23 | | - - repo: https://github.com/psf/black |
24 | | - rev: 20.8b1 |
25 | | - hooks: |
26 | | - - id: black |
27 | | - |
28 | | - - repo: https://github.com/pre-commit/mirrors-mypy |
29 | | - rev: v0.782 |
30 | | - hooks: |
31 | | - - id: mypy |
32 | | - args: [--ignore-missing-imports] |
33 | | - |
34 | | - - repo: https://github.com/pycqa/pydocstyle |
35 | | - rev: 4.0.0 # pick a git hash / tag to point to |
36 | | - hooks: |
37 | | - - id: pydocstyle |
38 | | - args: [--convention=numpy, --add-ignore=D104] |
39 | | - |
40 | | - - repo: https://github.com/asottile/blacken-docs |
41 | | - rev: v1.8.0 |
42 | | - hooks: |
43 | | - - id: blacken-docs |
44 | | - additional_dependencies: [black==20.8b1] |
45 | | - |
46 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
47 | | - rev: v3.2.0 |
48 | | - hooks: |
49 | | - - id: trailing-whitespace |
50 | | - exclude: ^docs/* |
51 | | - - id: end-of-file-fixer |
52 | | - exclude: ^docs/* |
53 | | - - id: debug-statements |
54 | | - - id: check-case-conflict |
55 | | - - id: check-json |
56 | | - - id: check-yaml |
57 | | - - id: mixed-line-ending |
58 | | - - id: check-toml |
59 | | - - id: pretty-format-json |
60 | | - - id: check-docstring-first |
61 | | - - id: check-symlinks |
62 | | - - id: detect-private-key |
| 2 | +- hooks: |
| 3 | + - args: |
| 4 | + - --multi-line=3 |
| 5 | + - --trailing-comma |
| 6 | + - --force-grid-wrap=0 |
| 7 | + - --use-parentheses |
| 8 | + - --line-width=88 |
| 9 | + - --ensure-newline-before-comments |
| 10 | + id: isort |
| 11 | + repo: https://github.com/pycqa/isort |
| 12 | + rev: 5.12.0 |
| 13 | +- hooks: |
| 14 | + - args: |
| 15 | + - --max-line-length=89 |
| 16 | + - --max-complexity=15 |
| 17 | + id: flake8 |
| 18 | + repo: https://github.com/pycqa/flake8 |
| 19 | + rev: 6.1.0 |
| 20 | +- hooks: |
| 21 | + - args: |
| 22 | + - --py36-plus |
| 23 | + id: pyupgrade |
| 24 | + repo: https://github.com/asottile/pyupgrade |
| 25 | + rev: v3.10.1 |
| 26 | +- hooks: |
| 27 | + - id: black |
| 28 | + repo: https://github.com/psf/black |
| 29 | + rev: 23.7.0 |
| 30 | +- hooks: |
| 31 | + - additional_dependencies: |
| 32 | + - types-attrs |
| 33 | + - types-requests |
| 34 | + - types-setuptools |
| 35 | + - types-PyYAML |
| 36 | + - types-toml |
| 37 | + args: |
| 38 | + - --ignore-missing-imports |
| 39 | + - --no-implicit-optional |
| 40 | + id: mypy |
| 41 | + repo: https://github.com/pre-commit/mirrors-mypy |
| 42 | + rev: v1.5.1 |
| 43 | +- hooks: |
| 44 | + - args: |
| 45 | + - --convention=google |
| 46 | + - --add-ignore=D104 |
| 47 | + id: pydocstyle |
| 48 | + repo: https://github.com/pycqa/pydocstyle |
| 49 | + rev: 6.3.0 |
| 50 | +- hooks: |
| 51 | + - id: blacken-docs |
| 52 | + repo: https://github.com/asottile/blacken-docs |
| 53 | + rev: 1.16.0 |
| 54 | +- hooks: |
| 55 | + - id: trailing-whitespace |
| 56 | + - id: end-of-file-fixer |
| 57 | + - id: debug-statements |
| 58 | + - id: check-case-conflict |
| 59 | + - id: check-json |
| 60 | + - id: check-added-large-files |
| 61 | + - id: check-yaml |
| 62 | + - id: mixed-line-ending |
| 63 | + - id: check-toml |
| 64 | + - id: pretty-format-json |
| 65 | + - id: check-docstring-first |
| 66 | + - id: check-symlinks |
| 67 | + - id: detect-private-key |
| 68 | + - id: pretty-format-json |
| 69 | + args: |
| 70 | + - --autofix |
| 71 | + repo: https://github.com/pre-commit/pre-commit-hooks |
| 72 | + rev: v4.4.0 |
| 73 | +- hooks: |
| 74 | + - args: |
| 75 | + - -iii |
| 76 | + - -lll |
| 77 | + id: bandit |
| 78 | + repo: https://github.com/PyCQA/bandit |
| 79 | + rev: 1.7.5 |
| 80 | +- hooks: |
| 81 | + - additional_dependencies: |
| 82 | + - radon |
| 83 | + args: |
| 84 | + - cc |
| 85 | + - --min=C |
| 86 | + - --total-average |
| 87 | + entry: radon |
| 88 | + id: radon |
| 89 | + language: python |
| 90 | + name: radon |
| 91 | + verbose: true |
| 92 | + repo: local |
| 93 | +- hooks: |
| 94 | + - id: commitizen |
| 95 | + stages: |
| 96 | + - commit-msg |
| 97 | + repo: https://github.com/commitizen-tools/commitizen |
| 98 | + rev: 3.6.0 |
0 commit comments