mirror of
https://github.com/kristoferssolo/bunyan-formatter.git
synced 2026-02-04 06:22:05 +00:00
ci(tox): add tox config
This commit is contained in:
28
tox.ini
Normal file
28
tox.ini
Normal 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
|
||||
Reference in New Issue
Block a user