mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +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:
|
||||
- id: black
|
||||
args:
|
||||
- --safe
|
||||
- --quiet
|
||||
files: ^((homeassistant|pylint|script|tests)/.+)?[^/]+\.py$
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
|
@ -74,7 +74,7 @@ include = ["homeassistant*"]
|
||||
|
||||
[tool.black]
|
||||
target-version = ["py39", "py310"]
|
||||
exclude = 'generated'
|
||||
extend-exclude = "/generated/"
|
||||
|
||||
[tool.isort]
|
||||
# https://github.com/PyCQA/isort/wiki/isort-Settings
|
||||
|
Loading…
x
Reference in New Issue
Block a user