|
1 | 1 | repos: |
2 | | - - |
3 | | - repo: https://github.com/pre-commit/mirrors-isort |
4 | | - rev: v4.3.21 |
5 | | - hooks: |
6 | | - - id: isort |
7 | | - language_version: python3.7 |
8 | | - - |
9 | | - repo: 'https://github.com/psf/black' |
10 | | - rev: stable |
11 | | - hooks: |
12 | | - - id: black |
13 | | - args: ['--safe'] |
14 | | - language_version: python3.7 |
15 | | - - |
16 | | - repo: https://gitlab.com/PyCQA/flake8 |
17 | | - rev: 3.8.3 |
18 | | - hooks: |
19 | | - - id: flake8 |
20 | | - language_version: python3.7 |
21 | | - args: [ |
22 | | - # E501 let black handle all line length decisions |
23 | | - # W503 black conflicts with "line break before operator" rule |
24 | | - # E203 black conflicts with "whitespace before ':'" rule |
25 | | - '--ignore=E501,W503,E203'] |
26 | | - - |
27 | | - repo: 'https://github.com/chewse/pre-commit-mirrors-pydocstyle' |
28 | | - # 2.1.1 |
29 | | - rev: 22d3ccf6cf91ffce3b16caa946c155778f0cb20f |
30 | | - hooks: |
31 | | - - id: pydocstyle |
32 | | - language_version: python3.7 |
33 | | - args: [ |
34 | | - # Check for docstring presence only |
35 | | - '--select=D1', |
36 | | - # Don't require docstrings for tests |
37 | | - '--match=(?!test).*\.py'] |
| 2 | + - repo: https://github.com/psf/black |
| 3 | + rev: 19.10b0 |
| 4 | + hooks: |
| 5 | + - id: black |
| 6 | + language_version: python |
38 | 7 |
|
39 | | - - |
40 | | - repo: https://github.com/pre-commit/mirrors-mypy |
41 | | - rev: 'v0.782' |
42 | | - hooks: |
43 | | - - id: mypy |
44 | | - args: ['--no-strict-optional', '--ignore-missing-imports'] |
| 8 | + - repo: https://github.com/PyCQA/isort |
| 9 | + rev: 5.4.2 |
| 10 | + hooks: |
| 11 | + - id: isort |
| 12 | + language_version: python |
| 13 | + |
| 14 | + - repo: https://github.com/PyCQA/flake8 |
| 15 | + rev: 3.8.3 |
| 16 | + hooks: |
| 17 | + - id: flake8 |
| 18 | + language_version: python |
| 19 | + |
| 20 | + - repo: https://github.com/PyCQA/pydocstyle |
| 21 | + rev: 5.1.1 |
| 22 | + hooks: |
| 23 | + - id: pydocstyle |
| 24 | + language_version: python |
| 25 | + |
| 26 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 27 | + rev: v0.812 |
| 28 | + hooks: |
| 29 | + - id: mypy |
| 30 | + language_version: python |
0 commit comments