-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
executable file
·97 lines (73 loc) · 2.14 KB
/
Justfile
File metadata and controls
executable file
·97 lines (73 loc) · 2.14 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
93
94
95
96
97
#!/usr/bin/env -S just --justfile
set shell := ["/bin/bash", "-c"]
alias check := run-type-checker
alias clean := clean-generated-files
alias demo := run-example
alias deploy := publish-documentation
alias docs := build-documentation
alias docserver := serve-documentation
alias download := download-cloc-script
alias export := export-requirements
alias format := run-formatter
alias hooks := run-hooks
alias lint := run-linter
alias lock := check-lockfile
alias package := build-package
alias python := install-python
alias publish := publish-package
alias setup := set-up-project
alias sync := sync-dependencies
alias test := run-tests
alias upgrade := upgrade-lockfile
alias venv := create-virtual-environment
default:
just --list
build-documentation:
uv run mkdocs build
build-package: download-cloc-script
uv build
check-lockfile:
uv lock --check
clean-generated-files:
uv run --active --script --quiet script/clean.py
create-virtual-environment:
uv venv --seed --allow-existing
download-cloc-script:
uv run --active --script --quiet script/download.py
export-requirements:
uv export --format requirements-txt \
--output-file requirements-dev.txt \
--all-extras \
--all-groups \
--all-packages \
--no-annotate \
--no-hashes \
--no-header \
--quiet
install-hooks:
uv run pre-commit install
install-python:
uv python install
publish-documentation:
uv run mkdocs gh-deploy --clean --force --no-history
publish-package:
uv publish --verbose
run-example: download-cloc-script
uv run --active --script --quiet script/example.py
run-formatter: run-linter
uv run ruff format
run-hooks:
uv run pre-commit run --all-files
run-linter:
uv run ruff check --fix
run-tests: download-cloc-script
uv run pytest -vv
run-type-checker:
uv run ty check
serve-documentation:
uv run mkdocs serve
set-up-project: install-python create-virtual-environment sync-dependencies install-hooks
sync-dependencies:
uv sync --all-packages --all-groups --all-extras
upgrade-lockfile:
uv lock --upgrade