1
0
Fork 0
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:
Nick M 2019-12-23 11:50:07 -05:00 committed by GitHub
commit 09afdf3a7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

12
.isort.cfg Normal file
View 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=

View file

@ -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: