[py]: Add no-op placeholder recipe for `isort` in tox
[tox]
-envlist = docs, flake8
+envlist = docs, flake8, isort
[testenv:docs]
skip_install = true
@@ -15,9 +15,27 @@ deps = flake8
flake8-typing-imports
commands = flake8 {posargs} --min-python-version=3.7
+
[testenv:mypy]
skip_install = true
deps =
mypy
lxml
commands = mypy {posargs}
+
+
+[isort]
+; isort is a common python tool for keeping imports nicely formatted.
+; Automatically keep imports alphabetically sorted, on single lines in
+; PEP recommended sections (https://peps.python.org/pep-0008/#imports)
+; files or individual lines can be ignored via `# isort:skip|# isort:skip_file`.
+; this is using --diff which is a NO-OP, requires additional discussion / approval being enabled.
+profile = black
+multi_line_output = 3
+py_version=37
+
+[testenv:isort]
+skip_install = true
+deps =
+ isort==5.10.1
+commands = isort test/ --diff
