Skip to content

Commit 3699945

Browse files
MementoRCclaude
andcommitted
fix(ci): move marker filter from command line to pytest config
Move '-m not external_deps and not benchmark' to addopts to avoid shell quoting issues in CI environments 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 1766e88 commit 3699945

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ install-editable = "python -m pip install -e ."
220220
dev-setup = "python -m pip install -e ."
221221

222222
# TIER 1: Core Quality Gates (ZERO-TOLERANCE)
223-
# Note: exclude external_deps and benchmark tests that require PostgreSQL or heavy dependencies
224-
test = "pytest tests/ -v -x -m 'not external_deps and not benchmark'"
223+
# Note: exclude external_deps and benchmark tests via addopts in pytest config
224+
test = "pytest tests/ -v -x"
225225
test-fast = "pytest tests/unit/ -v --maxfail=5"
226226
test-cov = "pytest tests/ --cov=src/uckn --cov-report=html --cov-report=term --cov-report=xml --cov-report=json -m 'not external_deps and not benchmark'"
227227
test-all = "pytest tests/ -v"
@@ -306,6 +306,7 @@ addopts = [
306306
"--tb=short",
307307
"--strict-markers",
308308
"--timeout-method=thread", # More robust for async/code with subprocesses
309+
"-m", "not external_deps and not benchmark", # Exclude tests requiring external deps
309310
]
310311
# CI-specific configuration removed - using standard configuration with runtime environment detection
311312
timeout = 120 # 2 minutes default timeout for all tests (pytest-timeout)

0 commit comments

Comments
 (0)