-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yml
More file actions
132 lines (112 loc) · 2.47 KB
/
taskfile.yml
File metadata and controls
132 lines (112 loc) · 2.47 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3.0"
set: ['e', 'u', 'pipefail']
shopt: ['globstar']
dotenv: ['./app/.env']
env:
VENV_DIR: "{{.ROOT_DIR}}/.venv"
PATH: "{{.VENV_DIR}}/bin:{{.PATH}}"
vars:
includes:
deno:
taskfile: ./taskfiles/deno.yml
docker:
taskfile: ./taskfiles/docker.yml
heroku:
taskfile: ./taskfiles/heroku.yml
pytest:
taskfile: ./taskfiles/pytest.yml
uv:
taskfile: ./taskfiles/uv.yml
tasks:
default:
desc: "Default task"
cmds:
- task --list
# TODO: update this
install:
desc: "Install project dependencies"
cmds:
- |
{{.INSTALL}} {{.CLI_ARGS}}
pre-commit:
desc: "Run pre-commit hooks"
cmds:
- prek run
lint:
desc: "Run linters"
cmds:
- ruff check --fix --respect-gitignore
format:
desc: "Run formatters"
cmds:
- ruff format --respect-gitignore
test:
desc: "Run all tests"
cmds:
- task: pytest:test
test:unit:
desc: "Run unit tests"
cmds:
- task: pytest:test:unit
test:integration:
desc: "Run integration tests (starts/stops server)"
cmds:
- task: pytest:test:integration
test:e2e:
desc: "Run e2e tests (starts/stops server)"
cmds:
- task: pytest:test:e2e
test:property:
desc: "Run property-based tests (Hypothesis)"
cmds:
- task: pytest:test:property
test:cov:
desc: "Run tests with coverage"
cmds:
- task: pytest:test:cov
pyclean:
desc: "Remove .pyc and __pycache__"
cmds:
- |
args=(
.
--debris
--verbose
-i .devbox
)
case "{{.CLI_ARGS}}" in
dry-run)
pyclean "${args[@]}" --dry-run
;;
*)
pyclean "${args[@]}"
;;
esac
checkbash:
desc: "Check bash scripts"
cmds:
- checkbashism -x {{.ROOT_DIR}}/app/*.sh
repomix:
desc: "Create llm snapshot of repo"
preconditions:
- sh: command -v repomix 2>/dev/null
msg: "repomix is not installed. Install with: deno install -g npm:repomix"
cmds:
- |
repomix \
--style markdown \
--compress \
--remove-comments \
--remove-empty-lines \
--truncate-base64
sources:
- "**/*.py"
- "**/*.toml"
- "**/*.yml"
- "**/*.yaml"
- "**/*.md"
- "**/*.json"
- ".repomix*"
generates:
- repomix-output.md