mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-22 16:40:48 +00:00
Merge pull request #28 from cisagov/improvements/pre-commit_add_isort
Add isort tool to pre-commit hooks.
This commit is contained in:
commit
09afdf3a7c
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
|
||||
hooks:
|
||||
- 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
|
||||
rev: v4.1.1a5
|
||||
hooks:
|
||||
|
|
Loading…
Reference in a new issue