-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 919 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (27 loc) · 919 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
# SPDX-License-Identifier: Apache-2.0
.PHONY: help sync test lint format parsimony all clean
help:
@echo "Targets:"
@echo " sync - uv sync (install env + dev deps)"
@echo " test - uv run pytest -q"
@echo " lint - uv run ruff check + uv run ruff format --check + uv run mypy (matches CI)"
@echo " format - uv run ruff format (auto-fix)"
@echo " parsimony - build ontology/rtm.ttl and report triple count"
@echo " all - parsimony + lint + test"
@echo " clean - remove caches and build outputs"
sync:
uv sync
test:
uv run pytest -q
lint:
uv run ruff check .
uv run ruff format --check .
uv run mypy
format:
uv run ruff format .
parsimony:
uv run python ontology/parsimony/build.py
all: parsimony lint test
clean:
rm -rf .pytest_cache .mypy_cache .ruff_cache .hypothesis __pycache__ build dist *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} +