Skip to content

Commit

Permalink
Tweak black config (#83230)
Browse files Browse the repository at this point in the history
* Remove `--safe` from pre-commit args, it's the default

* Extend exclusions instead of overriding, improve regex
  • Loading branch information
scop committed Dec 4, 2022
1 parent 6c896ad commit 8f9baaf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Expand Up @@ -16,7 +16,6 @@ repos:
hooks:
- id: black
args:
- --safe
- --quiet
files: ^((homeassistant|pylint|script|tests)/.+)?[^/]+\.py$
- repo: https://github.com/codespell-project/codespell
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -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
Expand Down

0 comments on commit 8f9baaf

Please sign in to comment.