Skip to content

Commit

Permalink
feat: add tox configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Nov 2, 2023
1 parent dfd7d79 commit b03fe6b
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions tox.ini
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

0 comments on commit b03fe6b

Please sign in to comment.