Skip to content

Commit d0af3d8

Browse files
committed
Add isort check
1 parent 1d40173 commit d0af3d8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
- name: Check style
3131
run: |
3232
flake8 src --count --statistics
33+
- name: Check import order
34+
run: |
35+
isort src --check-only --recursive
3336
- name: Check typing
3437
run: |
3538
mypy src

setup.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
[flake8]
22
max-line-length = 120
33

4+
[isort]
5+
# https://github.com/timothycrosley/isort/wiki/isort-Settings
6+
line_length = 120
7+
multi_line_output = 3
8+
include_trailing_comma = True
9+
410
[mypy]
511
disallow_untyped_defs = true

0 commit comments

Comments
 (0)