Skip to content

Commit 660f919

Browse files
committed
use --check --diff for isort and black in pre-commit
1 parent 842151d commit 660f919

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ repos:
77
hooks:
88
- id: system
99
name: isort
10-
entry: poetry run isort .
10+
entry: poetry run isort --check --diff .
1111
pass_filenames: false
1212
language: system
1313
- repo: local
1414
hooks:
1515
- id: system
1616
name: Black
17-
entry: poetry run black .
17+
entry: poetry run black --check --diff .
1818
pass_filenames: false
1919
language: system
2020
- repo: local

0 commit comments

Comments
 (0)