Skip to content

Commit

Permalink
Migrated to native tox configuraton
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Nov 24, 2024
1 parent ec80485 commit 0337906
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,25 +119,18 @@ ignore_missing_imports = true
disable_error_code = "type-abstract"

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

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

[testenv:pypy3]
commands = pytest {posargs}
[tool.tox.env.pyright]
commands = [["pyright", "--verifytypes", "apscheduler"]]
deps = ["pyright"]

[testenv:pyright]
deps = pyright
commands = pyright --verifytypes apscheduler
[testenv:docs]
extras = doc
commands = sphinx-build -W -n docs build/sphinx
"""
[tool.tox.env.docs]
commands = [["sphinx-build", "-W", "-n", "docs", "build/sphinx"]]
extras = ["doc"]

0 comments on commit 0337906

Please sign in to comment.