fix(ci): restore pytest dot-dir exclusion (norecursedirs '.*') — green CI
The custom norecursedirs in pyproject dropped pytest's default '.*' pattern, so pytest recursed into .aipass/ scaffolding. The telegram skill bundled at src/aipass/skills/.aipass/skills/telegram/tests/ (with __init__.py) made its conftest resolve to module 'tests.conftest', colliding with branch tests/ conftest.py -> ImportPathMismatchError aborted collection on BOTH Linux CI and Windows (the sole remaining green-CI blocker after the guard fix). - Re-add '.*' to norecursedirs (skips .aipass/.trinity/.seedgo/... scaffolding) - Verified: full src collection 9540 tests, no ImportPathMismatch; only the telegram .aipass scaffold tests excluded (the single tracked test dir under any dot-dir), all real branch tests still collected Note: the telegram skill's bundled tests (7 failing locally) are out of umbrella CI; skills owns stabilizing + properly integrating them. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
6aabc8bfe6
commit
634ffa853f
+5
-1
@@ -74,7 +74,11 @@ packages = ["src/aipass"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests", "src"]
|
||||
norecursedirs = ["templates", "*.egg-info", ".git", ".venv", "__pycache__", ".archive", "my-project"]
|
||||
# ".*" restores pytest's default dot-dir exclusion (dropped when this list was
|
||||
# customized) so scaffolding dirs (.aipass, .trinity, .seedgo, ...) are never
|
||||
# recursed for tests — prevents conftest module-name collisions like a bundled
|
||||
# skill's .aipass/.../tests/conftest.py clashing with a branch's tests/conftest.py.
|
||||
norecursedirs = ["templates", "*.egg-info", ".*", "__pycache__", "my-project"]
|
||||
|
||||
[tool.coverage.run]
|
||||
source = ["src/aipass"]
|
||||
|
||||
Reference in New Issue
Block a user