mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Tweak black config (#83230)
* Remove `--safe` from pre-commit args, it's the default * Extend exclusions instead of overriding, improve regex
This commit is contained in:
parent
6c896adcff
commit
8f9baafac1
@ -16,7 +16,6 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
args:
|
args:
|
||||||
- --safe
|
|
||||||
- --quiet
|
- --quiet
|
||||||
files: ^((homeassistant|pylint|script|tests)/.+)?[^/]+\.py$
|
files: ^((homeassistant|pylint|script|tests)/.+)?[^/]+\.py$
|
||||||
- repo: https://github.com/codespell-project/codespell
|
- repo: https://github.com/codespell-project/codespell
|
||||||
|
@ -74,7 +74,7 @@ include = ["homeassistant*"]
|
|||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
target-version = ["py39", "py310"]
|
target-version = ["py39", "py310"]
|
||||||
exclude = 'generated'
|
extend-exclude = "/generated/"
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
# https://github.com/PyCQA/isort/wiki/isort-Settings
|
# https://github.com/PyCQA/isort/wiki/isort-Settings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user