Skip to content

Commit 27979de

Browse files
committed
Add tasks.py to lint
1 parent ede0ae0 commit 27979de

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ exclude = [
5151
"__pycache__",
5252
"*.ipynb",
5353
".ipynb_checkpoints",
54-
"tasks.py"
5554
]
5655

5756
[tool.ruff.lint]

tasks.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
"""Invoke task definitions."""
2+
13
from invoke import task
24

35

46
@task
57
def lint(c):
6-
c.run("ruff check .")
7-
c.run("ruff format --check --diff .")
8+
"""Run lint checks using ruff."""
9+
c.run('ruff check .')
10+
c.run('ruff format --check --diff .')
811

912

1013
@task
1114
def fix_lint(c):
12-
c.run("ruff check --fix .")
13-
c.run("ruff format .")
15+
"""Automatically fix lint issues using ruff."""
16+
c.run('ruff check --fix .')
17+
c.run('ruff format .')

0 commit comments

Comments
 (0)