-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 983 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (20 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: ci test pre-commit lint typecheck security
PYTHON = venv311/bin/python
PYTEST = PYTHONPATH=. $(PYTHON) -m pytest
# ── Full CI suite (matches .github/workflows/ci.yml) ─────────────────────────
ci: pre-commit test rate-limit lint typecheck security
# ── Individual jobs ───────────────────────────────────────────────────────────
test:
$(PYTEST) tests/ -m "not live and not redis" -v --tb=short \
--cov=src --cov-report=term-missing
rate-limit:
PYTHONPATH=. $(PYTHON) -m unittest tests/test_rate_limiting_system.py -v
pre-commit:
$(PYTHON) -m pre_commit run --all-files
lint:
venv311/bin/ruff check src/ tests/
venv311/bin/ruff format --check src/ tests/
typecheck:
$(PYTHON) -m mypy src/core/ --follow-imports=silent
security:
$(PYTHON) -m bandit -r src/ -ll -ii -c pyproject.toml