-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
47 lines (36 loc) · 1.01 KB
/
Copy pathjustfile
File metadata and controls
47 lines (36 loc) · 1.01 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
# List available recipes.
help:
@just --list --unsorted
# Run all unit tests and coverage.
test:
uv run pytest --spec --cov
# Run unit tests without coverage and special formatting.
qtest:
uv run pytest
# Run linting and formating checks.
lint:
uv run ruff format --check .
uv run ruff check .
# Run security and safety checks.
safety:
uv run vulture --exclude .venv --min-confidence 100 .
uv run radon mi --show --multi --min B .
# Run static typing analysis.
type:
uv run mypy --install-types --non-interactive
# Run all checks.
check: lint type
#check: lint safety type
# Run all checks and tests.
ready: check test
# Reformat the code using ruff.
[confirm]
reformat:
uv run ruff format .
uv run ruff check --select I --fix .
# Extract current production requirements. Save to a file by appending `> requirements.txt`.
reqs:
uv export --no-dev
# List all commits since the last tag.
new-commits:
git log $(git describe --tags --abbrev=0)..HEAD --oneline --no-decorate