forked from canonical/jhack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 781 Bytes
/
Makefile
File metadata and controls
39 lines (31 loc) · 781 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
PROJECT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
SRC := $(PROJECT)jhack
export PYTHONPATH = $(PROJECT):$(SRC)
lock:
uv lock -U --no-cache
requirements:
uv pip compile -q --no-cache pyproject.toml -o requirements.txt
lint:
uv tool run ruff check $(ALL)
uv tool run ruff format --check --diff $(ALL)
uv run --extra dev pyright
fmt:
uv tool run ruff check --fix-only $(ALL)
uv tool run ruff format $(ALL)
unit:
uv run --isolated --extra dev \
coverage run --source=$(SRC)/tests \
-m pytest --tb native -v -s
$(SRC)/tests \
$(ARGS)
uv run --all-extras coverage report
clean:
rm -rf .coverage
rm -rf .pytest_cache
rm -rf .ruff_cache
rm -rf .venv
rm -rf *.charm
rm -rf *.rock
rm -rf **/__pycache__
rm -rf **/*.egg-info
rm -rf requirements*.txt