Add known_third_party to isort and pre-commit
This commit is contained in:
parent
7f7d179793
commit
f9ced38512
2 changed files with 9 additions and 1 deletions
|
@ -20,13 +20,18 @@ repos:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
|
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
|
||||||
|
|
||||||
|
- repo: https://github.com/asottile/seed-isort-config
|
||||||
|
rev: v1.9.4
|
||||||
|
hooks:
|
||||||
|
- id: seed-isort-config
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-isort
|
- repo: https://github.com/pre-commit/mirrors-isort
|
||||||
rev: v4.3.21
|
rev: v4.3.21
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/pygrep-hooks
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
||||||
rev: v1.4.2
|
rev: v1.4.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: python-check-blanket-noqa
|
- id: python-check-blanket-noqa
|
||||||
|
|
||||||
|
|
|
@ -4,3 +4,6 @@ universal = 1
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = W503
|
ignore = W503
|
||||||
max_line_length = 88
|
max_line_length = 88
|
||||||
|
|
||||||
|
[tool:isort]
|
||||||
|
known_third_party = flaky,pkg_resources,pylast,pytest,setuptools
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue