11repos :
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
387
39- -
40- repo : https://github.com/pre-commit/mirrors-mypy
41- rev : ' v0.782'
42- hooks :
43- - id : mypy
44- exclude : ^python_seed/template
45- 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+ args : [
14+ ' --project=python_seed' ,
15+ ' --thirdparty=click' ,
16+ ' --section-default=THIRDPARTY' ]
17+
18+ - repo : https://github.com/PyCQA/flake8
19+ rev : 3.8.3
20+ hooks :
21+ - id : flake8
22+ language_version : python
23+ args : [
24+ # E501 let black handle all line length decisions
25+ # W503 black conflicts with "line break before operator" rule
26+ # E203 black conflicts with "whitespace before ':'" rule
27+ ' --ignore=E501,W503,E203' ,
28+ ' --max-complexity=12' ,
29+ ' --max-line-length=90' ]
30+
31+ - repo : https://github.com/PyCQA/pydocstyle
32+ rev : 5.1.1
33+ hooks :
34+ - id : pydocstyle
35+ language_version : python
36+ args : [
37+ # Check for docstring presence only
38+ ' --select=D1' ,
39+ # Don't require docstrings for tests
40+ ' --match=(?!test).*\.py' ]
41+
42+ - repo : https://github.com/pre-commit/mirrors-mypy
43+ rev : v0.812
44+ hooks :
45+ - id : mypy
46+ language_version : python
47+ exclude : ^python_seed/template
48+ args : [--no-strict-optional, --ignore-missing-imports]
0 commit comments