ci(tox): add tox config

This commit is contained in:
2024-09-12 13:58:01 +03:00
parent 65fed7812f
commit 6f41a6cf9d
4 changed files with 53 additions and 3 deletions

28
tox.ini Normal file
View File

@@ -0,0 +1,28 @@
[tox]
envlist = py312, format, lint, type, test
skipsdist = True
[testenv]
deps =
hatchling
-rrequirements-dev.lock
[testenv:format]
description = Run ruff to format the code
skip_install = true
deps = ruff
commands = ruff format
[testenv:lint]
description = Run ruff to lint the code
skip_install = true
deps = ruff
commands = ruff check --fix
[testenv:type]
description = Run mypy to check type annotations
commands = mypy .
[testenv:test]
description = Run pytest to execute the tests
commands = pytest