mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Update .pre-commit-config.yaml to prevent loops between isort and black (#45321)
The pre-commit hook gets stuck in a file formatting loop where black and isort modify each other results. According to the isort webpage, the option --profile black has to be used to enhance compatibility. This has been run successfully in my local and has solved the loop. See: https://github.com/home-assistant/core/issues/45318 https://github.com/home-assistant/core/pull/45314
This commit is contained in:
parent
ef8ee38274
commit
c03b4d8aee
@ -43,6 +43,9 @@ repos:
|
|||||||
rev: 5.5.3
|
rev: 5.5.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
|
args:
|
||||||
|
- --profile
|
||||||
|
- black
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v3.2.0
|
rev: v3.2.0
|
||||||
hooks:
|
hooks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user