-
Notifications
You must be signed in to change notification settings - Fork 20
/
makefile
41 lines (33 loc) · 1012 Bytes
/
makefile
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
install:
@echo "--- 🚀 Installing project ---"
pip install -e ".[dev, docs, tests]"
static-type-check:
@echo "--- 🔍 Running static type check ---"
pyright src/
lint:
@echo "--- 🧹 Running linters ---"
ruff format . # running ruff formatting
ruff src/ --fix # running ruff linting
ruff tests/ --fix
ruff docs/conf.py --fix
test:
@echo "--- 🧪 Running tests ---"
pytest tests/
pr:
@echo "--- 🚀 Running PR checks ---"
make lint
make static-type-check
make test
@echo "Ready to make a PR"
build-docs:
@echo "--- 📚 Building docs ---"
@echo "Builds the docs and puts them in the 'site' folder"
sphinx-build -M html docs/ docs/_build
view-docs:
@echo "--- 👀 Viewing docs ---"
@echo You might need to rebuild the docs first"
open docs/_build/html/index.html
update-from-template:
@echo "--- 🔄 Updating from template ---"
@echo "This will update the project from the template, make sure to resolve any .rej files"
cruft update --skip-apply-ask