-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
72 lines (56 loc) · 1.62 KB
/
Taskfile.yml
File metadata and controls
72 lines (56 loc) · 1.62 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
version: '3'
tasks:
default:
cmds:
- task --list
silent: true
install:
desc: Install dependencies
cmd: uv sync --dev
install-fastapi:
desc: Install FastAPI
cmd: uv pip install "fastapi[standard]"
ci:
desc: Run tests that runs in CI
cmds:
- task: test
- task: lint
test:
desc: Run pytest
cmd: uv run pytest tests/ --tb=short -ra --cov=src/sheppy --cov-report=term-missing
lint:
desc: Run mypy and ruff check
cmds:
- uv run mypy --strict src/sheppy/
- uv run ruff check src/ tests/
lintf:
# desc: Run ruff format check (doesn't run in CI atm)
cmd: uv run ruff format --check src/ tests/
generate_cli_docs:
desc: Generates docs/cli.md
cmd: uv run typer sheppy.cli.cli utils docs --name sheppy --title "Sheppy CLI reference" --output docs/reference/cli.md
py310:
desc: Switch Python to version 3.10
cmd: uv venv --python 3.10 --clear && uv sync --dev
py311:
desc: Switch Python to version 3.11
cmd: uv venv --python 3.11 --clear && uv sync --dev
py312:
desc: Switch Python to version 3.12
cmd: uv venv --python 3.12 --clear && uv sync --dev
py313:
desc: Switch Python to version 3.13
cmd: uv venv --python 3.13 --clear && uv sync --dev
py314:
desc: Switch Python to version 3.14
cmd: uv venv --python 3.14 --clear && uv sync --dev
docs-build:
desc: Build docs
cmd: uv run mkdocs build
docs-dev:
desc: Run docs locally
cmd: uv run mkdocs serve --livereload -w src -w examples # --strict
includes:
sandbox:
taskfile: ./sandbox.ignore/Taskfile.yml
optional: true