-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (31 loc) · 996 Bytes
/
Copy pathMakefile
File metadata and controls
46 lines (31 loc) · 996 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
UV ?= uv
PYTHON ?= python3
.PHONY: sync format lint typecheck architecture markdown source-check source-check-strict test test-fast build check check-local clean
sync:
$(UV) sync --locked --group dev
format:
$(UV) run ruff format .
$(UV) run ruff check --fix .
lint:
$(UV) run ruff format --check .
$(UV) run ruff check .
typecheck:
$(UV) run mypy
architecture:
$(UV) run python scripts/check_architecture.py
markdown:
$(UV) run python scripts/check_markdown_math.py
source-check:
$(PYTHON) scripts/check_source_checkouts.py
source-check-strict:
$(PYTHON) scripts/check_source_checkouts.py --require-clean --timeout-seconds 300
test-fast:
$(UV) run pytest -m "unit or architecture or contract"
test:
$(UV) run pytest --cov=femx --cov-branch --cov-report=term-missing
build:
$(UV) build
check: lint typecheck architecture markdown test build
check-local: source-check check
clean:
rm -rf build dist .coverage coverage.xml htmlcov .mypy_cache .pytest_cache .ruff_cache