diff --git a/pyproject.toml b/pyproject.toml index d2b61a2..6ba355b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]