-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (39 loc) · 1.3 KB
/
.pre-commit-config.yaml
File metadata and controls
43 lines (39 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
default_stages:
- commit
- push
# Configuration for pre-commit hooks
repos:
# General hooks from the pre-commit-hooks repository
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
# Removes any trailing whitespace from lines in text files
- id: end-of-file-fixer
# Ensures files end with a newline
- id: check-yaml
# Checks YAML files for syntax errors
- id: check-json
# Checks JSON files for syntax errors
# Hooks for linting Markdown files
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.40.0
hooks:
# Ensures consistent style for Markdown files
- id: markdownlint
# Hooks for spell checking
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
# Spell checks files, ignoring specific words if needed
- id: codespell
args: ['--ignore-words-list=seperated']
# Ruff hooks for Python linting and formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4 # Use the latest version
hooks:
- id: ruff
args: [ --fix ]
# Runs the linter and auto-fixes issues where possible
- id: ruff-format
# Runs the formatter to enforce style consistency