diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6d6e22..b8dc392 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,25 +22,6 @@ repos: - id: ruff-format files: ^((custom_components|script|tests)/.+)?[^/]+\.py$ exclude: custom_components/xplora_watch/geocoder.py - # - repo: https://github.com/PyCQA/autoflake - # rev: v2.2.1 - # hooks: - # - id: autoflake - # args: - # - "--in-place" - # - "--remove-duplicate-keys" - # - "--remove-unused-variables" - # - "--remove-all-unused-imports" - # exclude: custom_components/xplora_watch/geocoder.py - # - repo: https://github.com/psf/black-pre-commit-mirror - # rev: 24.1.1 - # hooks: - # - id: black - # args: - # - --line-length=127 - # - --quiet - # files: ^((custom_components|pylint|script|tests)/.+)?[^/]+\.py$ - # exclude: custom_components/xplora_watch/geocoder.py - repo: https://github.com/codespell-project/codespell rev: v2.2.6 hooks: @@ -58,40 +39,8 @@ repos: hooks: - id: check-executables-have-shebangs stages: [manual] - # - id: check-ast - # exclude: custom_components/xplora_watch/geocoder.py - # - id: check-yaml - # - id: check-toml - id: check-json exclude: (.vscode|.devcontainer) - # - id: no-commit-to-branch - # args: - # - --branch=main - # - id: check-added-large-files - # args: [--maxkb=800] - # - id: debug-statements - # - id: detect-aws-credentials - # args: [--allow-missing-credentials] - # - id: detect-private-key - # - id: end-of-file-fixer - # exclude_types: [json] - # - id: forbid-new-submodules - # - id: mixed-line-ending - # args: [--fix=lf] - # exclude_types: [png, yaml, zip] - # exclude: (\.md|\.yml|\.jpg|\.png)$ - # - id: trailing-whitespace - # exclude_types: [json] - # - id: pretty-format-json - # args: [--autofix, --no-ensure-ascii] - # exclude: ^(hacs|custom_components/xplora_watch/manifest)\.json$ - # - id: check-executables-have-shebangs - # stages: [manual] - # - id: check-case-conflict - - repo: https://github.com/adrienverge/yamllint.git - rev: v1.34.0 - hooks: - - id: yamllint - repo: https://github.com/pre-commit/mirrors-prettier rev: v3.1.0 hooks: @@ -112,10 +61,3 @@ repos: - --force - --keep-updates files: ^(custom_components|tests|script)/.+\.py$ - # additional_dependencies: - # - black==24.1.1 - # - repo: https://github.com/asottile/pyupgrade - # rev: v3.15.0 - # hooks: - # - id: pyupgrade - # args: [--py311-plus]