Skip to content

Commit

Permalink
Create tox.ini
Browse files Browse the repository at this point in the history
Signed-off-by: NxPKG <[email protected]>
  • Loading branch information
NxPKG authored Feb 10, 2024
1 parent 4befb9b commit 1f072d9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[tox]
envlist = py{36,37,38,39}, lint, fmt, build, twinecheck

[testenv]
description = Run tests with pytest with coverage
extras = all
commands = ./scripts/run_tests.sh
allowlist_externals = ./scripts/run_tests.sh

[testenv:fmt]
description = Format code with pre-commit
extras = dev-fmt
commands = ./scripts/fmt.sh
allowlist_externals = ./scripts/fmt.sh

[testenv:lint]
description = Lint code with ruff
extras = dev-fmt
commands = ruff check term_tools

[testenv:build]
description = Build wheel package
deps = build
commands = python -m build
skip_install = True

[testenv:twinecheck]
description = Check built wheel package
deps = twine
commands = twine check dist/*

0 comments on commit 1f072d9

Please sign in to comment.