PlanOpticon

Add pre-commit hooks (ruff lint+format, trailing whitespace, large files, secrets)

leo 2026-02-15 05:33 trunk
Commit 48074942a8c912a7d1ab28eb3c2ea22d4dd19263dfd3e0af474439d62dd7a1d5
1 file changed +17
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,17 @@
1
+repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.9.7
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
8
+ - repo: https://github.com/pre-commit/pre-commit-hooks
9
+ rev: v5.0.0
10
+ hooks:
11
+ - id: trailing-whitespace
12
+ - id: end-of-file-fixer
13
+ - id: check-yaml
14
+ - id: check-added-large-files
15
+ args: [--maxkb=500]
16
+ - id: check-merge-conflict
17
+
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,17 @@
1 repos:
2 - repo: https://github.com/astral-sh/ruff-pre-commit
3 rev: v0.9.7
4 hooks:
5 - id: ruff
6 args: [--fix]
7 - id: ruff-format
8 - repo: https://github.com/pre-commit/pre-commit-hooks
9 rev: v5.0.0
10 hooks:
11 - id: trailing-whitespace
12 - id: end-of-file-fixer
13 - id: check-yaml
14 - id: check-added-large-files
15 args: [--maxkb=500]
16 - id: check-merge-conflict
17

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button