forked from epogrebnyak/ssg-dataset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
46 lines (35 loc) · 772 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
package := "ssg"
# List available commands
list:
just --list
# launch streamlit app
st:
poetry run streamlit run streamlit_app.py
# black and isort
lint:
black .
isort .
# build documentation
docs:
poetry run sphinx-build -a docs docs/site
# show documentation in browser
show:
python -m http.server -d docs/site
# publish documentation to Github Pages
pages:
poetry run ghp-import docs/site
# create rst source for API documentation
apidoc:
poetry run sphinx-apidoc -o docs src/{{package}}
# git pull from remote and rebase
pull:
git pull --rebase
# update csv file (project-specific)
update:
poetry run python example/update.py
# run pytest
test:
poetry run pytest
# run precommit hook
precommit:
pre-commit run --all-files