Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ ser/models/*.json
.hypothesis
.local/
.coverage
coverage.xml
.coverage.*
coverage.xml
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ make fmt # pyupgrade --py312-plus + ruff --fix + isort + black
make lint # ruff + black --check + isort --check-only
make type # mypy + pyright (pythonversion 3.12)
make test # pytest -q
make test-cov # coverage.py branch gate, including multiprocessing workers
make prepush-check # canonical pre-push hook command
make prepush-hook # hook workflow: autofix + verify + abort if files changed
make import-lint # API boundary import lint lane (TID251 banned-api policy)
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ test:
uv run pytest -q

test-cov:
uv run --frozen --extra dev pytest -q --cov=ser --cov-report=term-missing --cov-report=xml
uv run --frozen --extra dev coverage erase
uv run --frozen --extra dev coverage run -m pytest -q
uv run --frozen --extra dev coverage combine
uv run --frozen --extra dev coverage report
uv run --frozen --extra dev coverage xml

check: lint type test

Expand Down Expand Up @@ -79,3 +83,4 @@ quality-gate-full:
clean:
find . -type d -name "__pycache__" -prune -exec rm -rf {} +
rm -rf .pytest_cache .mypy_cache .ruff_cache dist build .pkg-smoke
find . -maxdepth 1 -type f \( -name ".coverage" -o -name ".coverage.*" -o -name "coverage.xml" \) -delete
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ dependencies = [
dev = [
"pre-commit>=4.0.0,<5.0.0",
"pytest>=8.0.0,<9.0.0",
"pytest-cov>=6.0.0,<7.0.0",
"coverage[toml]>=7.6.0,<8.0.0",
"hypothesis>=6.130.0,<7.0.0",
"ruff>=0.9.0,<1.0.0",
Expand Down Expand Up @@ -184,7 +183,10 @@ reportMissingTypeStubs = "none"

[tool.coverage.run]
branch = true
concurrency = ["multiprocessing"]
parallel = true
relative_files = true
sigterm = true
source = ["ser"]

[tool.coverage.report]
Expand Down
16 changes: 0 additions & 16 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading