Skip to content

Commit

Permalink
feat: add a minimal tox configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Feb 11, 2025
1 parent ca7e2d4 commit b0d93e7
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
dependencies
release-check

[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:dependencies]
description = check if the package defines all its dependencies
skip_install = true
deps =
build
z3c.dependencychecker==2.14.3
commands =
python -m build --sdist
dependencychecker

[testenv:release-check]
description = ensure that the distribution is ready to release
skip_install = true
deps =
twine
build
towncrier

commands =
# fake version to not have to install the package
# we build the change log as news entries might break
# the README that is displayed on PyPI
towncrier build --version=100.0.0 --yes
python -m build --sdist
twine check dist/*

0 comments on commit b0d93e7

Please sign in to comment.