-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[tox] | ||
min_version = 4.4.0 | ||
envlist = | ||
format | ||
lint | ||
coverage | ||
py38 | ||
py39 | ||
py310 | ||
py311 | ||
py312 | ||
pypy3 | ||
|
||
[testenv:test] | ||
description = run the distribution tests | ||
use_develop = true | ||
skip_install = false | ||
constrain_package_deps = true | ||
commands = | ||
pytest run_tests.py | ||
extras = | ||
test | ||
|
||
[testenv:format] | ||
description = automatically reformat code | ||
skip_install = true | ||
deps = | ||
pre-commit | ||
commands = | ||
pre-commit run -a pyupgrade | ||
pre-commit run -a isort | ||
pre-commit run -a black | ||
|
||
[testenv:lint] | ||
description = run linters that will help improve the code style | ||
skip_install = true | ||
deps = | ||
pre-commit | ||
commands = | ||
pre-commit run -a | ||
|
||
[testenv:coverage] | ||
description = get a test coverage report | ||
use_develop = true | ||
skip_install = false | ||
deps = | ||
coverage | ||
commands = | ||
pytest run_tests.py --cov --cov-report term-missing | ||
extras = | ||
test |