Skip to content

Commit

Permalink
Update .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
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:
home-assistant#45318
home-assistant#45314
  • Loading branch information
mduran80 committed Jan 19, 2021
1 parent 07c3981 commit eb8668f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -43,6 +43,9 @@ repos:
rev: 5.5.3
hooks:
- id: isort
args:
- --profile
- black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
Expand Down

0 comments on commit eb8668f

Please sign in to comment.