-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
50 lines (43 loc) · 1.17 KB
/
Taskfile.yml
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
---
# This Taskfile defines a set of tasks that can be run using the `task` command.
# To invoke a task, use the command `task <task_name>`. For example, to run the `init` task, use `task init`.
# This is the version of the Taskfile format being used
version: '3'
# Define the tasks that can be run
tasks:
format:
desc: Format the codebase
aliases: [f] # Short alias for the format task
cmds:
- task: format::ruff
format::ruff:
desc: Run the Ruff linter on the entire codebase
dir: '{{.TASKFILE_DIR}}'
cmds:
- uv run ruff format .
# Task to lint the codebase
lint:
desc: Lint the codebase
aliases: [l] # Short alias for the lint task
cmds:
- task: lint::ruff
lint::ruff:
desc: Run the Ruff linter on the entire codebase
cmds:
- uv run ruff check .
# Task to fix linting issues in the codebase
fix:
desc: Fix linting issues in the codebase
cmds: [uv run ruff check . --fix]
test:
desc: "Run the tests"
aliases: ["t"]
dir: "{{.USER_WORKING_DIR}}"
cmds:
- uv run pytest -vvv -s
do:
desc: run all the tasks
cmds:
- task: format
- task: fix
- task: lint