Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit db46daa

Browse files
author
Nick Sullivan
committed
🔧 Update pre-commit config for better code quality
- Upgrade pre-commit-hooks to v6.0.0 - Streamline hooks for essential checks - Update Ruff to v0.12.10 with linter and formatter - Remove unnecessary hooks for simpler configuration
1 parent cd5ea12 commit db46daa

1 file changed

Lines changed: 9 additions & 32 deletions

File tree

.pre-commit-config.yaml

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,18 @@
1-
# See https://pre-commit.com for more information
2-
# See https://pre-commit.com/hooks.html for more hooks
3-
4-
exclude: '\.git/|__pycache__/|\.pyc'
5-
61
repos:
72
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v5.0.0
3+
rev: v6.0.0
94
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
108
- id: check-added-large-files
11-
args: [--maxkb=500]
12-
- id: check-merge-conflict
13-
- id: check-symlinks
149
- id: check-toml
15-
- id: check-yaml
16-
- id: file-contents-sorter
17-
files: \.gitignore
18-
- id: mixed-line-ending
19-
- id: pretty-format-json
20-
args: [--autofix, --indent=4, --no-sort-keys]
21-
- id: trailing-whitespace
22-
23-
- repo: https://github.com/Lucas-C/pre-commit-hooks
24-
rev: v1.5.5
25-
hooks:
26-
- id: remove-tabs
27-
28-
- repo: https://github.com/sirosen/texthooks
29-
rev: 0.6.8
30-
hooks:
31-
- id: fix-smartquotes
3210

33-
# Ruff replaces flake8 and pylint and more
34-
- repo: https://github.com/charliermarsh/ruff-pre-commit
35-
rev: v0.9.2
11+
- repo: https://github.com/astral-sh/ruff-pre-commit
12+
rev: v0.12.10
3613
hooks:
37-
# Run the linter.
14+
# Linter
3815
- id: ruff
39-
args: [--fix]
40-
# Run the formatter.
16+
args: [--fix, --exit-non-zero-on-fix]
17+
# Formatter
4118
- id: ruff-format

0 commit comments

Comments
 (0)