mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-22 16:40:48 +00:00
Add seed-isort-config and isort to pre-commit hooks.
Add isort configuration file.
This commit is contained in:
parent
b89eecb788
commit
18b5d12c78
2 changed files with 22 additions and 0 deletions
12
.isort.cfg
Normal file
12
.isort.cfg
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[settings]
|
||||||
|
combine_star=true
|
||||||
|
force_sort_within_sections=true
|
||||||
|
|
||||||
|
import_heading_stdlib=Standard Python Libraries
|
||||||
|
import_heading_thirdparty=Third-Party Libraries
|
||||||
|
import_heading_firstparty=cisagov Libraries
|
||||||
|
|
||||||
|
# Should be auto-populated by seed-isort-config hook
|
||||||
|
known_third_party=
|
||||||
|
# These must be manually set to correctly separate them from third party libraries
|
||||||
|
known_first_party=
|
|
@ -60,6 +60,16 @@ repos:
|
||||||
rev: 19.10b0
|
rev: 19.10b0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
|
- repo: https://github.com/asottile/seed-isort-config
|
||||||
|
rev: v1.9.3
|
||||||
|
hooks:
|
||||||
|
- id: seed-isort-config
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-isort
|
||||||
|
# pick the isort version you'd like to use from
|
||||||
|
# https://github.com/pre-commit/mirrors-isort/releases
|
||||||
|
rev: v4.3.21
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
- repo: https://github.com/ansible/ansible-lint.git
|
- repo: https://github.com/ansible/ansible-lint.git
|
||||||
rev: v4.1.1a5
|
rev: v4.1.1a5
|
||||||
hooks:
|
hooks:
|
||||||
|
|
Loading…
Reference in a new issue