-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
39 lines (31 loc) · 818 Bytes
/
justfile
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
# List available recipes.
help:
@just --list --unsorted
# Run unit tests and coverage.
tests:
pytest --spec --cov
# Run unit tests without additional options.
tests-quick:
pytest
# Run linting and formating checks.
check-lint:
ruff format --check .
isort --check .
ruff check .
deptry .
# Run static typing analysis.
check-typing:
mypy --install-types --non-interactive
# Run all checks.
checks: check-lint check-typing
# Reformat the code using isort and ruff.
[confirm]
reformat:
isort .
ruff format .
# Extract current production requirements. Save to a file by appending `> requirements.txt`.
reqs:
pdm export --prod --without-hashes
# List all commits since the last tag.
new-commits:
git log $(git describe --tags --abbrev=0)..HEAD --oneline --no-decorate