-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
83 lines (60 loc) · 1.77 KB
/
justfile
File metadata and controls
83 lines (60 loc) · 1.77 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# path-sync copy -n python-template
# Custom variables and setup
REPO_URL := "https://github.com/EspenAlbert/path-sync"
# === DO_NOT_EDIT: path-sync standard ===
pre-push: lint fmt-check test vulture
@echo "All checks passed"
pre-commit: fmt fix lint
@echo "Pre-commit checks passed"
lint:
uv run ruff check .
fmt:
uv run ruff format .
fmt-check:
uv run ruff format --check .
fix:
uv run ruff check --fix .
test:
uv run pytest
build:
uv build
# === OK_EDIT: path-sync standard ===
# === DO_NOT_EDIT: path-sync vulture ===
vulture:
uv run vulture .
# === OK_EDIT: path-sync vulture ===
# === DO_NOT_EDIT: path-sync path-sync ===
path-sync-validate:
uv run path-sync validate-no-changes
# === OK_EDIT: path-sync path-sync ===
# === DO_NOT_EDIT: path-sync coverage ===
cov:
uv run pytest --cov --cov-report=html
cov-full:
uv run pytest --cov --cov-report=html --cov-report=xml
open-cov: cov
open htmlcov/index.html
# === OK_EDIT: path-sync coverage ===
# === DO_NOT_EDIT: path-sync typing ===
type-check:
uv run pyright
# === OK_EDIT: path-sync typing ===
# === DO_NOT_EDIT: path-sync pkg-ext ===
pkg-pre-change *args:
uv run --group release pkg-ext pre-change {{args}}
pkg-pre-commit *args:
uv run --group release pkg-ext --is-bot pre-commit {{args}}
pkg-post-merge *args:
uv run --group release pkg-ext --is-bot post-merge --push {{args}}
pkg-release-notes tag:
uv run --group release pkg-ext release-notes --tag {{tag}}
# === OK_EDIT: path-sync pkg-ext ===
# === DO_NOT_EDIT: path-sync docs ===
docs-build:
uv run scripts/fix_source_links.py {{REPO_URL}}
uv run --group docs mkdocs build --strict
docs-serve:
uv run scripts/fix_source_links.py {{REPO_URL}}
uv run --group docs mkdocs serve
# === OK_EDIT: path-sync docs ===
# Custom recipes below