2022-01-10 06:03:25 +00:00
|
|
|
[tox]
|
2023-11-06 17:24:05 +00:00
|
|
|
envlist = py38,py39,py310,py311
|
2022-01-10 06:03:25 +00:00
|
|
|
skip_missing_interpreters = True
|
2023-11-06 17:24:05 +00:00
|
|
|
package = editable
|
|
|
|
min_version = 4.0
|
2022-01-10 06:03:25 +00:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps = -rtest_requirements.txt
|
2023-11-06 17:24:05 +00:00
|
|
|
pass_env = COVERAGE_FILE
|
2022-01-10 06:03:25 +00:00
|
|
|
commands =
|
|
|
|
#pytest {posargs}
|
2023-11-06 17:28:31 +00:00
|
|
|
black --check .
|
2022-01-10 06:03:25 +00:00
|
|
|
isort --check-only --settings-path setup.cfg .
|
|
|
|
flake8 format_novel tests
|
|
|
|
|
|
|
|
[testenv:black]
|
|
|
|
commands =
|
|
|
|
black {posargs} .
|
|
|
|
|
|
|
|
[testenv:test]
|
|
|
|
commands =
|
|
|
|
pytest {posargs}
|
|
|
|
|
|
|
|
[testenv:isort]
|
|
|
|
deps = {[testenv]deps}
|
|
|
|
commands =
|
|
|
|
isort --settings-path setup.cfg .
|