Skip to content

Commit

Permalink
Migrated to native tox TOML configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Oct 26, 2024
1 parent 0c50de6 commit d812f2e
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,15 @@ strict = true
pretty = true

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = pypy3, py38, py39, py310, py311, py312, py313
env_list = ["py38", "py39", "py310", "py311", "py312", "py313"]
skip_missing_interpreters = true
minversion = 4.0

[testenv]
extras = test
commands = coverage run -m pytest {posargs}
package = editable
[tool.tox.env_run_base]
commands = [["coverage", "run", "-m", "pytest", { replace = "posargs", extend = true }]]
package = "editable"
extras = ["test"]

[testenv:docs]
extras = doc
package = editable
commands = sphinx-build -W -n docs build/sphinx
"""
[tool.tox.env.docs]
depends = []
extras = ["doc"]
commands = [["sphinx-build", "-W", "-n", "docs", "build/sphinx"]]

0 comments on commit d812f2e

Please sign in to comment.