2019-11-28 15:53:00 +00:00
|
|
|
[flake8]
|
|
|
|
# Use black line length:
|
|
|
|
max-line-length = 88
|
|
|
|
extend-ignore =
|
|
|
|
# See https://github.com/PyCQA/pycodestyle/issues/373
|
|
|
|
E203,
|
|
|
|
|
|
|
|
[mypy]
|
|
|
|
warn_return_any = True
|
|
|
|
warn_unused_configs = True
|
|
|
|
|
|
|
|
[mypy-pytest.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-IPython.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2019-12-03 09:51:36 +00:00
|
|
|
[tox:tox]
|
2021-07-08 13:48:02 +00:00
|
|
|
envlist = py{36,37,38},py{36,37,38}-lint
|
2019-11-28 15:53:00 +00:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps =
|
|
|
|
pytest
|
|
|
|
commands =
|
|
|
|
pytest tests
|
|
|
|
|
2021-07-08 13:48:02 +00:00
|
|
|
[testenv:py{36,37,38}-lint]
|
2019-11-28 15:53:00 +00:00
|
|
|
deps =
|
|
|
|
black
|
|
|
|
flake8
|
|
|
|
flake8-black
|
|
|
|
mypy
|
2021-07-08 13:48:02 +00:00
|
|
|
isort
|
2019-11-28 15:53:00 +00:00
|
|
|
commands =
|
|
|
|
black --check --diff setup.py simplex tests
|
|
|
|
flake8 simplex tests
|
2021-07-08 13:48:02 +00:00
|
|
|
mypy simplex tests
|
|
|
|
isort -c simplex tests setup.py
|