1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

native toml config for tox

This commit is contained in:
Mathieu Dupuy 2024-10-07 10:45:17 +02:00
parent 6e103b9c7e
commit 2c15b1b8f4
No known key found for this signature in database
GPG key ID: 08C1D4F32506B23A

View file

@ -50,34 +50,31 @@ requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[tool.tox] [tool.tox]
legacy_tox_ini = """ min_version = "4.0"
[tox:tox] envlist = ["py", "flake8", "isort", "mypy"]
min_version = 4.0
envlist = py, flake8, isort, mypy
[testenv] [tool.tox.env.py]
extras = extras = ["test"]
test deps = [
deps = "pytest",
pytest "pytest-cov"
pytest-cov ]
commands = pytest -r s --cov --cov-report=term --cov-report=xml . commands = [["pytest", "-r", "s", "--cov", "--cov-report=term", "--cov-report=xml", "."]]
[testenv:flake8] [tool.tox.env.flake8]
deps = flake8==7.1.0 deps = ["flake8==7.1.0"]
commands = flake8 . commands = [["flake8", "."]]
skip_install = True skip_install = true
[testenv:isort] [tool.tox.env.isort]
deps = isort==5.13.2 deps = ["isort==5.13.2"]
commands = isort --check --diff . commands = [["isort", "--check", "--diff", "."]]
skip_install = True skip_install = true
[testenv:mypy] [tool.tox.env.mypy]
deps = mypy==1.11.0 deps = ["mypy==1.11.0"]
commands = mypy . commands = [["mypy", "."]]
skip_install = True skip_install = true
"""
[tool.setuptools] [tool.setuptools]