diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f7b1e54d0a4..5ec11b93926 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,6 @@ repos: hooks: - id: black args: - - --safe - --quiet files: ^((homeassistant|pylint|script|tests)/.+)?[^/]+\.py$ - repo: https://github.com/codespell-project/codespell diff --git a/pyproject.toml b/pyproject.toml index d59713224c6..37e6f66f687 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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