Skip to content

Commit

Permalink
Fix isort by adding pytest to known_third_party
Browse files Browse the repository at this point in the history
  • Loading branch information
clenk committed Jul 22, 2020
1 parent 8a65a9d commit 4933909
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[settings]
known_third_party=antlr4,enum,dateutil,six,stix2patterns,typing
known_third_party=
antlr4,
dateutil,
enum,
pytest,
six,
stix2patterns,
typing,
known_first_party=stix2matcher
force_sort_within_sections=1
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: ea227f024bd89d638aea319c92806737e3375979
rev: ea227f024bd89d638aea319c92806737e3375979
hooks:
- id: trailing-whitespace
- id: flake8
args:
- --max-line-length=160
- id: check-merge-conflict
- repo: https://github.com/FalconSocial/pre-commit-python-sorter
rev: b57843b0b874df1d16eb0bef00b868792cb245c2
hooks:
- id: python-import-sorter

0 comments on commit 4933909

Please sign in to comment.