-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (36 loc) · 1000 Bytes
/
Copy pathMakefile
File metadata and controls
52 lines (36 loc) · 1000 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
47
48
49
50
51
52
.PHONY: venv install dev run test test-cov lint format format-fix format-check version build clean pre-commit integration-test setup
venv:
uv venv
install:
uv sync
dev:
uv sync --group dev
run:
uv run pr-owl $(ARGS)
test:
uv run pytest -m "not integration"
test-cov:
uv run pytest -m "not integration" --cov=pr_owl --cov-report=term-missing
integration-test:
uv run pytest -m integration
lint:
uv run ruff check src/ tests/
format:
uv run ruff format src/ tests/
format-fix:
uv run ruff check --fix src/ tests/
uv run ruff format src/ tests/
format-check:
uv run ruff format --check src/ tests/
version:
git describe --tags --always --dirty 2>/dev/null || echo "no tags"
build:
uv build
clean:
rm -rf build/ dist/ *.egg-info .pytest_cache/ .coverage htmlcov/ .ruff_cache/
rm -f src/pr_owl/_version.py
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -name '*.pyc' -delete 2>/dev/null || true
pre-commit: format lint test
setup:
./setup