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:
Ville Skyttä 2022-12-05 00:12:37 +02:00 committed by GitHub
parent 6c896adcff
commit 8f9baafac1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -16,7 +16,6 @@ repos:
hooks:
- id: black
args:
- --safe
- --quiet
files: ^((homeassistant|pylint|script|tests)/.+)?[^/]+\.py$
- repo: https://github.com/codespell-project/codespell

View file

@ -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