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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ wheels/
.coverage
.coverage.*
htmlcov/
mutants/

# Linting / type-checking caches
.ruff_cache/
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.DEFAULT_GOAL := help

.PHONY: help install install-dev install-demo sync lint format typecheck test test-integration coverage check fix pre-commit docs docs-serve clean
.PHONY: help install install-dev install-demo sync lint format typecheck test test-integration coverage mutate check fix pre-commit docs docs-serve clean

help: ## Show this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
Expand Down Expand Up @@ -36,6 +36,9 @@ test-integration: ## Run integration tests (requires Phoenix)
coverage: ## Run pytest with coverage report
uv run pytest tests/ -q --cov=evalwire --cov-report=term-missing --cov-fail-under=85

mutate: ## Run mutation testing with mutmut
uv run mutmut run

check: lint format typecheck test ## Run all checks (lint, format, typecheck, test)

fix: ## Auto-fix lint and format issues
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,19 @@ markers = [
]
addopts = "-m 'not integration'"

[tool.mutmut]
paths_to_mutate = ["src/evalwire/"]
pytest_add_cli_args_test_selection = ["tests/"]
pytest_add_cli_args = ["--ignore=tests/test_evaluators_property.py", "--ignore=tests/integration"]
do_not_mutate = ["*__init__.py", "*cli.py"]

[dependency-groups]
dev = [
"hypothesis>=6.152.1",
"mkdocs>=1.6.1",
"mkdocs-material>=9.0",
"mkdocstrings[python]>=0.25",
"mutmut>=3.5",
"pre-commit>=4.5.1",
"pytest>=8.0",
"pytest-asyncio>=0.23",
Expand Down
Loading
Loading