Skip to content

Commit 2ad391b

Browse files
authored
Merge pull request #11 from sam-xl/use_diff_in_ci_ruff
Use diff in ruff linting
2 parents d2136a0 + 6e92010 commit 2ad391b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.ci/python/lint.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ export PATH=$PATH:$HOME/.local/bin
1919
pip install ruff==0.9.2
2020

2121
# lint the code (replaces flake8, isort, etc.)
22-
ruff check .
22+
ruff check --diff .
2323

2424
# check if formatting is correct (~ equivalent of `black format --check`)
25-
ruff format --check .
26-
25+
ruff format --diff .

0 commit comments

Comments
 (0)