File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[tox]
2- envlist = docs, flake8
2+ envlist = docs, flake8, isort
33
44[testenv:docs]
55skip_install = true
@@ -15,9 +15,27 @@ deps = flake8
1515 flake8-typing-imports
1616commands = flake8 {posargs} --min-python-version =3.7
1717
18+
1819[testenv:mypy]
1920skip_install = true
2021deps =
2122 mypy
2223 lxml
2324commands = 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
You can’t perform that action at this time.
0 commit comments