-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (45 loc) · 1.02 KB
/
.pre-commit-config.yaml
File metadata and controls
45 lines (45 loc) · 1.02 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
44
45
repos:
#####
# Basic file cleanliness
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
#####
# Python
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.11
hooks:
# Sort imports
- id: ruff-check
# Run the formatter
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.8.14
hooks:
- id: uv-lock
#####
# R
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.4.3.9014
hooks:
- id: lintr
#####
# Bash
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.12.0-2
hooks:
- id: shfmt
#####
# Secrets
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
exclude: package.lock.json