-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTaskfile.yml
More file actions
65 lines (53 loc) · 1.57 KB
/
Taskfile.yml
File metadata and controls
65 lines (53 loc) · 1.57 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
version: '3'
tasks:
format:
cmds:
- uv run ruff format src tests
desc: Auto-format .py files in src/
format-check:
cmds:
- uv run ruff format src tests --check
desc: Check that autoformatting is not required for .py files in src/
lint:
cmds:
- uv run ruff check src tests --fix
desc: Attempt to auto-fix .py files in src/ that fail linting
lint-check:
cmds:
- uv run ruff check src tests
desc: Lint .py files in src/
sql-fix:
cmds:
- uv run sqlfluff fix src/sql
desc: Fix .sql files in src/sql/ with SQLFluff
sql-check:
cmds:
- uv run sqlfluff lint src/sql
desc: Lint .sql files in src/sql/ with SQLFluff
test:
cmds:
- uv run pytest
desc: Run the unit tests via Pytest
test-coverage:
cmds:
- uv run pytest --cov=src --cov-report=term-missing --cov-fail-under=70
desc: Test coverage evaluation, failing if less than 70%
type-check:
cmds:
- uv run mypy src
desc: Run the Mypy static type checker against src/
fix:
cmds:
- task: format
- task: lint
- task: sql-fix
desc: Auto-fix issues where possible
check:
cmds:
- task: format-check
- task: lint-check
- task: sql-check
- task: test
- task: test-coverage
- task: type-check
desc: Run all automated checks