Skip to content

Commit

Permalink
test: pre-commit: add isort
Browse files Browse the repository at this point in the history
Compatible with black (see PyCQA/isort#694)
  • Loading branch information
casperdcl committed May 6, 2020
1 parent 99636a9 commit 2ec73c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ repos:
language_version: python3
repo: https://github.com/ambv/black
rev: 19.10b0
- hooks:
- id: isort
language_version: python3
repo: https://github.com/timothycrosley/isort
rev: 4.3.21
- hooks:
- id: flake8
language_version: python3
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ ignore=
W503, # Line break occurred before a binary operator
max_line_length=79
select=B,C,E,F,W,T4,B9

[isort]
line_length=79
include_trailing_comma=true
multi_line_output=3

0 comments on commit 2ec73c6

Please sign in to comment.