19 lines
638 B
Makefile
19 lines
638 B
Makefile
default: verify
|
|
verify: lint format-check bandit vulture typecheck test
|
|
test:
|
|
@echo "Run: PYTHONPATH=. python3 -m pytest tests/ -v"
|
|
uv run pytest -v
|
|
lint:
|
|
uv run ruff check __init__.py tests/
|
|
format:
|
|
uv run ruff format __init__.py tests/
|
|
format-check:
|
|
uv run ruff format --check __init__.py tests/
|
|
typecheck:
|
|
uv run ty check __init__.py tests/
|
|
bandit:
|
|
uv run bandit -r __init__.py tests/ -c pyproject.toml
|
|
vulture:
|
|
uv run vulture . .vulture_whitelist.py --exclude '.venv,dist,.git,__pycache__'
|
|
clean:
|
|
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null; find . -type f -name '*.pyc' -delete
|