-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
46 lines (35 loc) · 901 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
40
41
42
43
44
45
46
PIP := "uv pip"
# list the tasks in this project (default)
list-tasks:
just --list
# clean up build artifacts
clean:
rm -rf build dist *.egg-info
# build the modules and wheels
build:
python -m build -n
# install the package
[confirm("this installs package from a wheel, continue [y/N]?")]
install:
{{PIP}} install .
# install the package (editable)
install-editable:
{{PIP}} install -e .
# set up for development in non-conda environments
install-dev:
{{PIP}} install -e '.[dev,test,doc]'
# run tests with default configuration
test:
python -m pytest
# run tests matching a keyword query
test-matching query:
python -m pytest -k
# build documentation
docs:
sphinx-build docs build/doc
# preview documentation with live rebuild
preview-docs:
sphinx-autobuild --watch seedbank docs build/doc
# update source file headers
update-headers:
unbehead