From 0337906a63f3480a025fdd5bb55828d477467872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Sun, 24 Nov 2024 23:13:02 +0200 Subject: [PATCH] Migrated to native tox configuraton --- pyproject.toml | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d2b61a23..6ba355b5 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"]