-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathjustfile
More file actions
92 lines (76 loc) · 3.03 KB
/
Copy pathjustfile
File metadata and controls
92 lines (76 loc) · 3.03 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
84
85
86
87
88
89
90
91
92
# list recipes
default:
@just --list --unsorted
# install dependencies and set up pre-commit hooks
install:
poetry install
poetry run pre-commit install --hook-type commit-msg --hook-type pre-commit --hook-type pre-push
# update dependencies and pre-commit hook revisions
update:
poetry update
poetry run pre-commit autoupdate
# regenerate poetry.lock without upgrading dependencies
lock:
poetry lock --no-update
# remove Python file artifacts
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
# run ruff linting and fix all fixable errors
lint:
poetry run ruff check --fix .
# run ruff formatter
format:
poetry run ruff format .
# run pyright type checking
types:
poetry run pyright
# run tests with coverage
test:
poetry run pytest --cov=deeptab tests/
# build HTML docs locally (warnings treated as errors)
docs:
rm -rf docs/_build
poetry run sphinx-build -b html docs/ docs/_build/html -W --keep-going
# run all pre-commit hooks on all files including push-stage hooks (ruff, pyright, prettier)
check:
poetry run pre-commit run --hook-stage push --all-files
# create a conventional commit using commitizen
commit:
poetry run cz commit
# audit installed dependencies for known vulnerabilities
# The advisories ignored below are not actionable for a release today. Review this
# list on every release and drop an entry the moment a fix lands within our pins.
# pip (PYSEC-2026-196, CVE-2026-3219, CVE-2026-6357):
# the installer itself, dev tooling only, never shipped as a dependency.
# msgpack / starlette (GHSA-6v7p-g79w-8964, CVE-2026-54283, CVE-2026-54282):
# only pulled in through the optional [mlflow] extra, not the core install.
# torch / pytorch-lightning (PYSEC-2026-139, CVE-2025-3000, CVE-2025-3001,
# CVE-2026-31221): no published fix, or a fix only in a release above our
# current torch <2.10 upper bound.
audit:
poetry run pip-audit \
--ignore-vuln PYSEC-2026-196 \
--ignore-vuln CVE-2026-3219 \
--ignore-vuln CVE-2026-6357 \
--ignore-vuln GHSA-6v7p-g79w-8964 \
--ignore-vuln CVE-2026-54283 \
--ignore-vuln CVE-2026-54282 \
--ignore-vuln PYSEC-2026-139 \
--ignore-vuln CVE-2025-3000 \
--ignore-vuln CVE-2025-3001 \
--ignore-vuln CVE-2026-31221
# preview the next stable version bump (pass extra cz args, e.g. `just bump-preview --increment MAJOR`)
bump-preview *args:
poetry run cz bump --dry-run {{ args }}
# apply the next stable version bump (updates version, CHANGELOG, commit, and tag)
bump *args:
poetry run cz bump {{ args }}
# preview the next release-candidate bump (pass extra cz args, e.g. `just bump-rc-preview --increment MAJOR`)
bump-rc-preview *args:
poetry run cz bump --prerelease rc --dry-run {{ args }}
# apply the next release-candidate bump (rcN; updates version, CHANGELOG, commit, and tag)
bump-rc *args:
poetry run cz bump --prerelease rc {{ args }}