Skip to content

Commit b51a0d7

Browse files
committed
Add isort
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
1 parent 6a6689d commit b51a0d7

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

requirements-tests.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ pytest >= 3.3.0
22
pytest-cov
33
pytest-mock
44
black
5+
isort

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
[tool:pytest]
22
addopts = --cov --cov-config .coveragerc --cov-report term-missing --cov-report xml --cov-report html
3+
4+
[isort]
5+
profile = black
6+
lines_after_imports = 2
7+
force_alphabetical_sort_within_sections = true

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ commands =
2929
[testenv:format]
3030
deps =
3131
black
32+
isort
3233
commands =
3334
black --check {posargs:.}
35+
isort --check {posargs:.}
3436

3537

3638
[flake8]

0 commit comments

Comments
 (0)