claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
Provides standardized pytest config, reusable fixtures, and CI integration patterns. Use when setting up or auditing a Python plugin's test infrastructure.
Claude Code
$ npx -y skills add athola/claude-night-market --skill pytest-config --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill pytest-config -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill pytest-config -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill pytest-config -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill pytest-config -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill pytest-config -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill pytest-config -a windsurf -y
name: pytest-config description: Provides standardized pytest config, reusable fixtures, and CI integration patterns. Use when setting up or auditing a Python plugin's test infrastructure. globs: ["**/conftest.py", "**/pytest.ini", "**/pyproject.toml"] alwaysApply: false category: infrastructure tags: - pytest - testing - configuration - fixtures dependencies: - leyline:testing-quality-standards estimated_tokens: 200 provides: infrastructure: - pytest-config - conftest-patterns - coverage-config modules: - modules/conftest-patterns.md - modules/git-testing-fixtures.md - modules/mock-fixtures.md - modules/ci-integration.md - modules/README.md
Standardized pytest configuration and patterns for consistent testing infrastructure across Claude Night Market plugins.
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--cov=src",
"--cov-report=term-missing",
"--cov-fail-under=80",
"--strict-markers",
]
markers = [
"unit: marks tests as unit tests",
"integration: marks tests as integration tests",
"slow: marks tests as slow running",
]
[tool.coverage.run]
source = ["src"]
omit = ["*/tests/*", "*/migrations/*", "*/__pycache__/*"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
precision = 2
show_missing = true**Verification:** Run `pytest --collect-only` to verify discovery, `pytest -v --co -q` for markers, and `pytest --cov` for coverage thresholds.
For detailed implementation patterns, see:
This skill provides foundational patterns referenced by:
Reference in your skill's frontmatter:
dependencies: [leyline:pytest-config, leyline:testing-quality-standards]
**Tests not discovered** Ensure test files match pattern `test_*.py` or `*_test.py`. Run `pytest --collect-only` to verify.
**Import errors** Check that the module being tested is in `PYTHONPATH` or install with `pip install -e .`
**Async tests failing** Install pytest-asyncio and decorate test functions with `@pytest.mark.asyncio`
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.