Testing: allow setting PYTEST_MARKERS to control which tests to run by default

This commit is contained in:
Michael Panchenko
2025-06-14 01:25:31 +02:00
parent 9c28f90139
commit 4a4b665d60
+3 -1
View File
@@ -107,7 +107,9 @@ exclude = "^build/|^docs/"
PYDEVD_DISABLE_FILE_VALIDATION = "1"
[tool.poe.tasks]
test = "pytest test --color=yes"
# Uses PYTEST_MARKERS env var for default markers (defaults to "not java and not rust")
# Set PYTEST_MARKERS="" to run all tests
test = "pytest test --color=yes -m \"${PYTEST_MARKERS:-not java and not rust}\""
_black_check = "black --check --exclude src/multilspy/ src scripts test"
_ruff_check = "ruff check --exclude .venv/ --exclude src/multilspy/ src scripts test"
_black_format = "black --exclude .venv/|src/multilspy/ src scripts test"