Skip to content

Commit c21d220

Browse files
committed
[py]: Add no-op placeholder recipe for isort in tox
1 parent 011e931 commit c21d220

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

py/tox.ini

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = docs, flake8
2+
envlist = docs, flake8, isort
33

44
[testenv:docs]
55
skip_install = true
@@ -15,9 +15,27 @@ deps = flake8
1515
flake8-typing-imports
1616
commands = flake8 {posargs} --min-python-version=3.7
1717

18+
1819
[testenv:mypy]
1920
skip_install = true
2021
deps =
2122
mypy
2223
lxml
2324
commands = mypy {posargs}
25+
26+
27+
[isort]
28+
; isort is a common python tool for keeping imports nicely formatted.
29+
; Automatically keep imports alphabetically sorted, on single lines in
30+
; PEP recommended sections (https://peps.python.org/pep-0008/#imports)
31+
; files or individual lines can be ignored via `# isort:skip|# isort:skip_file`.
32+
; this is using --diff which is a NO-OP, requires additional discussion / approval being enabled.
33+
profile = black
34+
multi_line_output = 3
35+
py_version=37
36+
37+
[testenv:isort]
38+
skip_install = true
39+
deps =
40+
isort==5.10.1
41+
commands = isort test/ --diff

0 commit comments

Comments
 (0)