-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 762 Bytes
/
Makefile
File metadata and controls
44 lines (33 loc) · 762 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
PY=uv run python
LIBSPEC=uv run libspec
.PHONY: bump-major
bump-major:
$(PY) util/bump_version.py major
.PHONY: bump-minor
bump-minor:
$(PY) util/bump_version.py minor
.PHONY: bump-patch
bump-patch:
$(PY) util/bump_version.py patch
.PHONY: build
build:
$(LIBSPEC) build ./spec/main_spec.py
.PHONY: spec
spec: build
.PHONY: diff
diff:
$(LIBSPEC) diff
.PHONY: test
test:
uv run pytest -n auto
.PHONY: format
format:
uv run ruff format --line-length=80 spec/*.py
.PHONY: clean
clean:
rm -rf __pycache__ .pytest_cache .coverage htmlcov test_project
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type d -name "*.egg-info" -exec rm -rf {} +
find . -name "*.bak" -delete
find . -name "*.pyc" -delete
find . -name "*.pyo" -delete