Skip to content

Commit c5d2433

Browse files
committed
replicate config in pre-commit
1 parent f5e9b3f commit c5d2433

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)