From 7781f7fb96fe50fa5b378c5448e820259ed59308 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 23 Apr 2024 06:26:10 +1000 Subject: [PATCH] [SEDONA-538] Add four more pre-commit hooks https://github.com/pre-commit/pre-commit-hooks --- .github/linters/codespell.txt | 2 +- .pre-commit-config.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/linters/codespell.txt b/.github/linters/codespell.txt index fcffd6d66c..b828d8b767 100644 --- a/.github/linters/codespell.txt +++ b/.github/linters/codespell.txt @@ -3,6 +3,7 @@ afterall bu celle eiter +errorprone fpt limite nd @@ -13,4 +14,3 @@ refere ser shouldbe wel -errorprone diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f97af3cba3..3f2d6dd59b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,6 +22,7 @@ repos: rev: v4.5.0 hooks: - id: check-ast + - id: check-builtin-literals - id: check-case-conflict # - id: check-docstring-first # - id: check-executables-have-shebangs @@ -34,12 +35,17 @@ repos: - id: check-yaml exclude: ^mkdocs\.yml$ - id: debug-statements + - id: destroyed-symlinks - id: detect-aws-credentials args: [--allow-missing-credentials] - id: detect-private-key - id: end-of-file-fixer exclude: \.svg$|^docs/image|^spark/common/src/test/resources + - id: file-contents-sorter + args: [--unique] + files: ^\.github/linters/codespell\.txt$ - id: fix-byte-order-marker + - id: forbid-submodules - id: mixed-line-ending exclude: \.csv$ - id: requirements-txt-fixer