Move the configuration options for the various static source checkers that
we run through tox.ini to the standard Python project configuration files,
so that they are also available when the tools are run in other ways.
--- /dev/null
+[tool.black]
+line-length = 79
+
+[tool.mypy]
+strict = true
+python_version = 3.6
--- /dev/null
+[flake8]
+# Leave the formatting to the black tool.
+extend-ignore = E203
deps =
black >= 22, < 23
commands =
- python3 -m black --check --line-length 79 {[defs]files}
+ python3 -m black --check {[defs]files}
[testenv:black-reformat]
basepython = python3
deps =
black >= 22, < 23
commands =
- python3 -m black --line-length 79 {[defs]files}
+ python3 -m black {[defs]files}
[testenv:flake8]
basepython = python3
deps =
flake8
commands =
- python3 -m flake8 --ignore=E203 {[defs]files}
+ python3 -m flake8 {[defs]files}
[testenv:mypy]
basepython = python3
mypy
types-dataclasses
commands =
- python3 -m mypy --strict --python-version=3.6 {[defs]files}
+ python3 -m mypy {[defs]files}
[testenv:pylint]
basepython = python3
deps =
pylint
commands =
- python3 -m pylint --ignore-imports=yes {[defs]files}
+ python3 -m pylint {[defs]files}