-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
50 lines (40 loc) · 907 Bytes
/
Taskfile.yaml
File metadata and controls
50 lines (40 loc) · 907 Bytes
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
version: '3'
tasks:
compile-proto:
desc: Compile .proto file to Python module in decoder/
cmds:
- protoc --proto_path=decoder --python_out=decoder decoder/google_auth.proto
sources:
- decoder/google_auth.proto
generates:
- decoder/google_auth_pb2.py
run:
desc: Run the main application with uv
cmds:
- uv run google_auth_decoder {{.CLI_ARGS}}
format:
desc: Format code with Black
cmds:
- uv run ruff format
lint:
desc: Lint with Ruff
cmds:
- uv run ruff check --fix
mypy:
desc: Type-check with mypy
cmds:
- uv run mypy .
test:
desc: Run unit tests
cmds:
- uv run pytest src/google_auth_decoder/tests
check:
desc: Run format, lint and typecheck
cmds:
- task lint
- task mypy
- task test
clean:
desc: Remove build files
cmds:
- rm -r dist