Skip to content

Commit 74f17a7

Browse files
committed
feat: add --diff to the ruff-check precommit hook
1 parent e92dbc6 commit 74f17a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

{{cookiecutter.project_name}}/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
args: [--config=.ruff.toml]
2121

2222
- id: ruff-check
23-
args: [--fix, --exit-non-zero-on-fix, --config=.ruff.toml]
23+
args: [--fix, --diff, --exit-non-zero-on-fix, --config=.ruff.toml]
2424

2525
- repo: https://github.com/doublify/pre-commit-rust
2626
rev: master

0 commit comments

Comments
 (0)