From d9d83832adf1d064905b1bb47ab6b4006965c4e3 Mon Sep 17 00:00:00 2001 From: ANIRUDDHA ADAK Date: Sun, 27 Oct 2024 23:26:07 +0530 Subject: [PATCH 1/2] Update .pre-commit-config.yaml for issue #50 --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4cd8e4c..e80a230 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,3 +43,11 @@ repos: - id: check-added-large-files name: Check Added Large Files description: Prevents adding large files to the repository + + # Add ls-lint + - repo: https://github.com/lojjic/pre-commit-ls-lint + rev: v1.0.0 + hooks: + - id: ls-lint + name: Lint filenames and directories + description: An extremely fast file and directory name linter From 9962a874dbc0e912d5ee86f162019fbe9d864c87 Mon Sep 17 00:00:00 2001 From: ANIRUDDHA ADAK Date: Sun, 27 Oct 2024 23:30:09 +0530 Subject: [PATCH 2/2] Update .pre-commit-config.yaml Add official pre-commit hooks first . --- .pre-commit-config.yaml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e80a230..5c1f652 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,6 +3,23 @@ # See https://pre-commit.com/hooks.html for more hooks repos: + # Add official pre-commit hooks first + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: trailing-whitespace + name: Trailing Whitespace + description: Removes trailing whitespace in text files + - id: end-of-file-fixer + name: End of File Fixer + description: Ensures that files end with a newline + - id: check-yaml + name: Check YAML + description: Checks whether YAML files are valid + - id: check-added-large-files + name: Check Added Large Files + description: Prevents adding large files to the repository + - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.42.0 hooks: @@ -27,23 +44,6 @@ repos: - id: codespell args: ["--ignore-words", ".github/linters/codespell.txt"] - # Add official pre-commit hooks - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 - hooks: - - id: trailing-whitespace - name: Trailing Whitespace - description: Removes trailing whitespace in text files - - id: end-of-file-fixer - name: End of File Fixer - description: Ensures that files end with a newline - - id: check-yaml - name: Check YAML - description: Checks whether YAML files are valid - - id: check-added-large-files - name: Check Added Large Files - description: Prevents adding large files to the repository - # Add ls-lint - repo: https://github.com/lojjic/pre-commit-ls-lint rev: v1.0.0