Skip to content

Commit ebe72ac

Browse files
authored
Run black via poetry in pre-commit-hook
This is the preferred way, as it ensures that the right virtual environment is active, see other qc repos. Signed-off-by: Pierre R. Mai <pmai@pmsf.de>
1 parent 872ad92 commit ebe72ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ repos:
99
hooks:
1010
- id: black
1111
name: black
12-
entry: black
12+
entry: poetry run black
1313
language: system
1414
types: [python]

0 commit comments

Comments
 (0)