-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathmakefile
30 lines (25 loc) · 883 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
install:
@echo "--- 🚀 Installing project ---"
uv sync --extra docs --extra tests --extra style
uv pip install pip
uv pip install -r tests/requirements.txt
lint:
@echo "--- 🧹 Running linters ---"
uv run ruff format . # running ruff formatting
uv run ruff check **/*.py --fix # running ruff linting
lint-check:
@echo "--- 🧹 Check is project is linted ---"
uv run ruff format . --check # running ruff formatting
uv run ruff check **/*.py # running ruff linting
test:
@echo "--- 🧪 Running tests ---"
make install
pytest tests/ -n auto
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