-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
81 lines (68 loc) · 1.53 KB
/
Taskfile.yml
File metadata and controls
81 lines (68 loc) · 1.53 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
version: '3'
tasks:
install:
desc: Install production dependencies
cmds:
- uv sync --no-dev
install-dev:
desc: Install development dependencies
cmds:
- uv sync --group docs --group dev
- uv pip install -e .
install-docs:
desc: Install documentation dependencies
cmds:
- uv sync --group docs
update:
desc: Update dependencies
cmds:
- uv lock --upgrade
test:
desc: Run tests
deps: [install-dev]
cmds:
- uv run pytest
lint:
desc: Run linting
cmds:
- uv run ruff check .
- uv run ruff format --check .
- uv run ty check
format:
desc: Format code
cmds:
- uv run ruff format .
- uv run ruff check --fix --unsafe-fixes .
clean:
desc: Clean build artifacts
cmds:
- rm -rf build/
- rm -rf dist/
- rm -rf src/*.egg-info/
- rm -rf .coverage
- rm -rf htmlcov/
build:
desc: Build package
deps: [clean]
cmds:
- uv build
publish:
desc: Publish to PyPI
deps: [build]
cmds:
- uv publish --token $(PYPI_API_TOKEN)
docs-build:
desc: Build the documentation
deps: [install-docs]
cmds:
- uv run mkdocs build --config-file ./mkdocs.yml
docs-serve:
desc: Serve the documentation locally
deps: [install-docs]
cmds:
- uv run mkdocs serve --config-file ./mkdocs.yml
docs-deploy:
desc: Deploy documentation to GitHub Pages
deps: [install-docs]
cmds:
- uv run mkdocs gh-deploy --config-file ./mkdocs.yml