-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (48 loc) · 1000 Bytes
/
Makefile
File metadata and controls
69 lines (48 loc) · 1000 Bytes
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
58
59
60
61
62
63
64
65
66
67
68
69
.PHONY: setup
setup:
uv sync --all-extras
uv run pre-commit install
uv tool install tox --with tox-uv
.PHONY: test
test:
tox
make test-postgres
.PHONY: test-postgres
test-postgres:
bin/test_postgres.sh
.PHONY: lint
lint:
uv run pre-commit run --all-files
.PHONY: format
format:
uv run pre-commit run ruff-format --all-files
# Migrate example database to latest version.
.PHONY: upgrade
upgrade:
uv run alembic -c redun/backends/db/alembic.ini upgrade head
# Autogenerate a new migration
.PHONY: revision
revision:
uv run alembic -c redun/backends/db/alembic.ini revision --autogenerate -m "$(MESSAGE)"
.PHONY: build
build: setup
uv build
.PHONY: publish
publish: lint test build
bin/publish-packages.sh
.PHONY: docs
docs:
cd docs && uv run make clean api html
.PHONY: docs
pub-docs:
bin/publish-docs.sh
.PHONY: clean
clean:
rm -rf build
rm -rf dist
rm -rf *.egg*/
find redun -type f -name '*.pyc' -delete
.PHONY: teardown
teardown:
rm -rf .venv/
rm -rf .tox/