-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
57 lines (41 loc) · 742 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Build
build:
uv build
# Clean
clean:
rm -rf .nox/
rm -rf .venv/
rm -rf dist/
rm -rf site/
rm -f .coverage*
# Docs
doc-build:
uv run mkdocs build
doc-serve: doc-build
uv run mkdocs serve
doc-deploy:
uv run mkdocs gh-deploy --force
# Setup
init: init-uv init-python
init-uv:
curl -LsSf https://astral.sh/uv/$(shell cat .uv-version)/install.sh | sh
init-python:
uv python install $(cat .python-version)
install:
uv sync
lock:
uv lock
# Validations
format:
uv run ruff format --check .
lint: lint-python lint-sql
lint-python:
uv run ruff check --output-format=github .
lint-sql:
uv run sqlfluff lint .
type:
uv run mypy .
test:
uv run pytest -vv -m "not df"
test-all:
uv run nox --reuse-venv=yes --no-install