Update isort.cfg and .pre-commit-config.yaml
Adds 'add trailing commas' hook and changes isort to not re-write each otherstix2.1
parent
965d7fa788
commit
7476456e46
|
@ -14,3 +14,5 @@ known_third_party =
|
||||||
taxii2client,
|
taxii2client,
|
||||||
known_first_party = stix2
|
known_first_party = stix2
|
||||||
force_sort_within_sections = 1
|
force_sort_within_sections = 1
|
||||||
|
multi_line_output = 5
|
||||||
|
include_trailing_comma = True
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
sha: v0.9.4
|
rev: v1.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: flake8
|
- id: flake8
|
||||||
args:
|
args:
|
||||||
- --max-line-length=160
|
- --max-line-length=160
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
|
- repo: https://github.com/asottile/add-trailing-comma
|
||||||
|
rev: v0.6.4
|
||||||
|
hooks:
|
||||||
|
- id: add-trailing-comma
|
||||||
- repo: https://github.com/FalconSocial/pre-commit-python-sorter
|
- repo: https://github.com/FalconSocial/pre-commit-python-sorter
|
||||||
sha: b57843b0b874df1d16eb0bef00b868792cb245c2
|
sha: b57843b0b874df1d16eb0bef00b868792cb245c2
|
||||||
hooks:
|
hooks:
|
||||||
|
|
Loading…
Reference in New Issue