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:
parent
6e103b9c7e
commit
2c15b1b8f4
1 changed files with 21 additions and 24 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue