-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
41 lines (34 loc) · 1.04 KB
/
Copy pathTaskfile.yml
File metadata and controls
41 lines (34 loc) · 1.04 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
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: '3'
tasks:
default:
deps: [check]
check:
- task: tests
- task: type
- task: lint
- task: fmtchk
- git diff --exit-code
fix: "{{.RUN}} ruff check --fix {{.CLI_ARGS}}"
fmt: "{{.RUN}} ruff format {{.CLI_ARGS}}"
fmtchk: "{{.RUN}} ruff format --check {{.CLI_ARGS}}"
lint: "{{.RUN}} ruff check {{.CLI_ARGS}}"
test: "{{.RUN}} pytest tests {{.PYTEST}} {{.CLI_ARGS}}"
tests: "{{.RUN}} tox {{.TOX}} {{.CLI_ARGS}}"
type: "{{.RUN}} pyrefly check {{.PYREFLY}} {{.CLI_ARGS}}"
gen:
- "{{.RUN}} unicodedata-reader lb -t js/template.js {{.GEN}} {{.CLI_ARGS}}"
- "{{.RUN}} unicodedata-reader gc -t js/template.js {{.GEN}} {{.CLI_ARGS}}"
install-git-hooks:
desc: Create git hooks
cmds:
- echo '#!/bin/sh' > .git/hooks/pre-push
- echo 'task check' >> .git/hooks/pre-push
- cmd: chmod +x .git/hooks/pre-push
platforms: [linux, darwin]
vars:
GEN: -fv
PYTEST:
PYREFLY: --summarize-errors
RUN: uv run
TOX: -p