Skip to content

Commit 0e51ef9

Browse files
committed
Add ruff support to Taskfile and fix the smoketest failure for cli
1 parent dd2e348 commit 0e51ef9

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,7 @@ Pipfile.lock
8080
poetry.lock
8181

8282
# cursor rules
83-
.cursorrules
83+
.cursorrules
84+
85+
86+
.task/*

.task/checksum/install

Lines changed: 0 additions & 1 deletion
This file was deleted.

Taskfile.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,10 @@ tasks:
3131
desc: Build the package
3232
cmds:
3333
- . .venv/bin/activate && python -m build
34-
deps: [install]
34+
deps: [install]
35+
36+
run-check:
37+
desc: Run all checks (install, lint, test)
38+
cmds:
39+
- poetry run ruff check .
40+
deps: [install]

tests/test_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import subprocess, sys, json
1+
import subprocess
2+
import sys
23

34
def test_cli_smoke():
45
result = subprocess.run(

0 commit comments

Comments
 (0)