-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
40 lines (30 loc) · 887 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
package := "old-ancient-axe"
# initial install of dependencies (from pyproject.toml)
pinstall:
poetry install
# update of dependencies (from pyproject.toml)
pupdate:
poetry update
# launch streamlit app
app:
poetry run streamlit run streamlit_app.py &
# black and isort
lint:
black .
# build documentation
docs:
poetry run sphinx-build -a docs docs/site
# show documentation in browser
show:
open docs/site/index.html
# publish documentation to Github Pages
pages:
poetry run ghp-import docs/site
# create rst source for API documentation
apidoc:
sphinx-apidoc -o docs src/{{package}}
# list running Streamlit processes
ps:
ps -ef | grep "streamlit run" | grep -v sh
# Debug Streamlit app - see https://stackoverflow.com/questions/60172282/how-to-run-debug-a-streamlit-application-from-an-ide
# Using the debug_app.py work-a-round for Streamlit debugging