-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into always-use-ref-for-validation
- Loading branch information
Showing
387 changed files
with
19,892 additions
and
2,741 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,80 @@ | ||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.34.0 | ||
- repo: local | ||
hooks: | ||
- id: pyupgrade | ||
stages: [manual] | ||
- id: codespell | ||
name: Check code for common misspellings | ||
language: system | ||
types: [text] | ||
stages: [commit, push, manual] | ||
entry: codespell | ||
args: | ||
- "--py39-plus" | ||
- --quiet-level=2 | ||
- --ignore-words-list=hass,ba,fo | ||
- --skip=custom_components/hacs/utils/default.repositories | ||
- --skip=tests/fixtures/* | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
name: Sort imports | ||
language: system | ||
types: [text] | ||
stages: [commit, push, manual] | ||
entry: isort | ||
|
||
- id: pyupgrade | ||
name: Run pyupgrade | ||
language: system | ||
types: [text] | ||
stages: [commit, push, manual] | ||
entry: pyupgrade | ||
files: ^.*.py$ | ||
args: | ||
- "--py39-plus" | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
stages: [manual] | ||
name: Run black | ||
language: system | ||
types: [text] | ||
stages: [commit, push, manual] | ||
entry: black | ||
args: | ||
- --safe | ||
- --quiet | ||
files: ^((custom_components|script|tests)/.+)?[^/]+\.py$ | ||
files: ^((action|custom_components|script|tests)/.+)?[^/]+\.py$ | ||
|
||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.1.0 | ||
hooks: | ||
- id: codespell | ||
stages: [manual] | ||
args: | ||
- --quiet-level=2 | ||
- --ignore-words-list=hass,ba,fo | ||
- --exclude-file=custom_components/hacs/utils/default.repositories | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-executables-have-shebangs | ||
stages: [manual] | ||
name: Check that executables have shebangs | ||
language: system | ||
types: [text, executable] | ||
entry: check-executables-have-shebangs | ||
stages: [commit, push, manual] | ||
|
||
- id: check-json | ||
stages: [manual] | ||
name: Check JSON files | ||
language: system | ||
types: [json] | ||
stages: [commit, push, manual] | ||
entry: check-json | ||
|
||
- id: requirements-txt-fixer | ||
stages: [manual] | ||
name: Check requirements files | ||
language: system | ||
types: [text] | ||
stages: [commit, push, manual] | ||
entry: requirements-txt-fixer | ||
files: ^requirements_.*.txt$ | ||
|
||
- id: check-ast | ||
stages: [manual] | ||
name: Check Python AST | ||
language: system | ||
types: [python] | ||
stages: [commit, push, manual] | ||
entry: check-ast | ||
|
||
- id: mixed-line-ending | ||
stages: [manual] | ||
name: Check line nedings | ||
language: system | ||
types: [text] | ||
stages: [commit, push, manual] | ||
entry: mixed-line-ending | ||
args: | ||
- --fix=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.