Repository navigation
Expand file tree
/
Copy pathTaskfile.yml
More file actions
85 lines (82 loc) · 2.48 KB
/
Copy pathTaskfile.yml
File metadata and controls
85 lines (82 loc) · 2.48 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
82
83
84
85
version: '3'
dotenv: ['.env']
tasks:
##############################
### TESTS
##############################
test:
cmds:
- uv run pytest {{.CLI_ARGS}}
desc: Run pytest
aliases: [t]
test:watch:
cmds:
# ptw crashes without this fix, ] must be indented
- sed -i '' 's/^]$/ ]/' pyproject.toml
- uv run ptw -- {{.CLI_ARGS}}
desc: Run pytest-watch
aliases: [tw]
test:coverage:
cmds:
- uv run pytest {{.CLI_ARGS}} --cov --cov-report=lcov:lcov.info --cov-report=term:skip-covered
desc: Run pytest with coverage reporting
aliases: [tc]
test:watch-coverage:
cmds:
# ptw crashes without this fix, ] must be indented
- sed -i '' 's/^]$/ ]/' pyproject.toml
- uv run ptw -- {{.CLI_ARGS}} --cov --cov-report=lcov:lcov.info --cov-report=term:skip-covered
desc: Run pytest-watch with coverage reporting
aliases: [twc, tcw]
##############################
### BENCHMARKS
##############################
bench:
cmds:
- uv run python -m benchmarks.run -n 2000 {{.CLI_ARGS}}
desc: Run a quick memory-only acquire-path benchmark profile (numbers are machine-relative; see benchmarks/README.md)
aliases: [b]
##############################
### PREFLIGHT
##############################
preflight:
cmds:
- uv run python -m devtools.preflight {{.CLI_ARGS}}
desc: Run the CI gates locally before pushing (add --quick or --full)
aliases: [pf]
##############################
### LINT AND DEPENDENCIES
##############################
lint:
cmds:
- uv run ruff check --fix
desc: Run Ruff linter with auto-fix
aliases: [l]
lint-watch:
cmds:
- uv run ruff check --fix --watch
desc: Run Ruff linter in watch mode with auto-fix
aliases: [lw]
lint-types:
cmds:
- uv run mypy {{.CLI_ARGS}}
desc: Run mypy type checks
aliases: [lt]
upgrade-dependencies:
desc: Upgrade all project dependencies to their latest compatible versions
cmds:
- uv sync --upgrade
aliases: [ud]
##############################
### RELEASE DISPATCH
##############################
publish:patch:
cmds:
- gh workflow run release.yml --ref main -f bump=patch
desc: Dispatch the remote GitHub Actions patch release workflow [Usage] pp
aliases: [pp]
publish:minor:
cmds:
- gh workflow run release.yml --ref main -f bump=minor
desc: Dispatch the remote GitHub Actions minor release workflow [Usage] pm
aliases: [pm]