Skip to content

Commit

Permalink
Update .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aniruddhaadak80 authored Oct 27, 2024
1 parent 8384c76 commit 3e351f7
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,32 @@
# 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

# Add ls-lint
- repo: https://github.com/loeffel-io/ls-lint
rev: v0.38.0 # Check for the latest version
hooks:
- id: ls-lint
name: ls-lint
description: An extremely fast file and directory name linter
args: ["--config", ".ls-lint.yml"] # Optional: customize the config path

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
Expand All @@ -26,20 +52,3 @@ repos:
hooks:
- 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

0 comments on commit 3e351f7

Please sign in to comment.