File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,21 +10,39 @@ repos:
1010 hooks :
1111 - id : isort
1212 language_version : python
13+ args : [
14+ ' --project=python_seed' ,
15+ ' --thirdparty=click' ,
16+ ' --section-default=THIRDPARTY' ]
1317
1418 - repo : https://github.com/PyCQA/flake8
1519 rev : 3.8.3
1620 hooks :
1721 - id : flake8
1822 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' ]
1930
2031 - repo : https://github.com/PyCQA/pydocstyle
2132 rev : 5.1.1
2233 hooks :
2334 - id : pydocstyle
2435 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' ]
2541
2642 - repo : https://github.com/pre-commit/mirrors-mypy
2743 rev : v0.812
2844 hooks :
2945 - id : mypy
3046 language_version : python
47+ exclude : ^python_seed/template
48+ args : [--no-strict-optional, --ignore-missing-imports]
You can’t perform that action at this time.
0 commit comments