-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
59 lines (48 loc) · 1.26 KB
/
Taskfile.yml
File metadata and controls
59 lines (48 loc) · 1.26 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
version: '3'
tasks:
clean:
cmds:
- rm -rf dist/ build/ *.egg-info eyepop.egg-info
build:
deps: [clean]
cmds:
- uv pip install build setuptools-scm
- uv run python -m build
install:editable:
cmds:
- uv pip install -e .
test:
cmds:
- uv run pytest
typecheck:
desc: "Run basedpyright on all files (matches CI standard mode)"
cmds:
- uvx basedpyright .
typecheck:changed:
desc: "Run basedpyright on changed files only (vs origin/main)"
cmds:
- >-
git diff --name-only --diff-filter=d origin/main HEAD -- '*.py'
| xargs -r uvx basedpyright
lint:
desc: "Run ruff on changed files (vs origin/main)"
cmds:
- >-
git diff --name-only --diff-filter=d origin/main HEAD -- '*.py'
| xargs -r uvx ruff check
lint:all:
desc: "Run ruff on all files"
cmds:
- uvx ruff check .
check:
desc: "Run all quality checks (lint, typecheck, test) — matches CI"
cmds:
- task: lint
- task: typecheck:changed
- task: test
inspect-wheel:
cmds:
- unzip -l dist/*.whl | grep -E "py.typed|\.py$|\.pyi$"
verify-version:
cmds:
- .venv/bin/python -c "import eyepop; print('Version:', eyepop.__version__)"