Skip to content

Commit 75e1fde

Browse files
committed
tox.ini: add config for isort
1 parent df8869c commit 75e1fde

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,14 @@ filterwarnings =
205205
# Do not cause SyntaxError for invalid escape sequences in py37.
206206
default:invalid escape sequence:DeprecationWarning
207207
pytester_example_dir = testing/example_scripts
208+
208209
[flake8]
209210
max-line-length = 120
210211
ignore = E203,W503
212+
213+
[isort]
214+
; This config mimics what reorder-python-imports does.
215+
force_single_line = 1
216+
known_localfolder = pytest,_pytest
217+
known_third_party = test_source,test_excinfo
218+
force_alphabetical_sort_within_sections = 1

0 commit comments

Comments
 (0)