-
Notifications
You must be signed in to change notification settings - Fork 4
/
justfile
47 lines (36 loc) · 852 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
47
package := "finec"
# List available commands (default option to just)
list:
just --list
# Publish package to PyPI
publish:
export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring
poetry publish
# Run code from README
readme:
cat README.md | codedown python | poetry run python
# Format markdown
pretty:
npx prettier --write .
# launch streamlit app
app:
poetry run streamlit run app/streamlit_app.py
# Run black and isort
lint:
black .
isort .
# Run tests
test:
poetry run pytest
# Build documentation
docs-build:
poetry run sphinx-build -a docs docs/site
# Show documentation in browser
docs-show:
start docs/site/index.html
# Publish documentation to Github Pages
docs-publish:
poetry run ghp-import docs/site
# Create rst source for API documentation
docs-apidoc:
sphinx-apidoc -o docs {{package}}