-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yml
60 lines (56 loc) · 1.63 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
51
52
53
54
55
56
57
58
59
60
---
# 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:
install:
desc: Install project dependencies
cmds: [uv sync]
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]
do:
desc: run all the tasks
cmds:
- task: format
- task: fix
- task: lint
- task: test
test:
desc: Run the tests
aliases: [t]
cmds:
- uv run pytest -vv -s --cov=torah_dl --cov-report html
docs:
desc: Generate the documentation
cmds:
- uv run typer torah_dl.cli utils docs --output docs/MANUAL.md --name torah-dl
- uv run mkdocs build
gen-cov-badge:
desc: Generate the coverage badge
cmds:
- uv run pytest -vv -s --cov=torah_dl --cov-report xml
- uv run genbadge coverage --input-file coverage.xml --output-file docs/assets/coverage.svg