-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (38 loc) · 1.38 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
44 lines (38 loc) · 1.38 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
############################
# Pre-commit configuration #
############################
# Install via `uv add pre-commit --dev`
# This is run as a precondition to commits, run manually via `pre-commit run`
# When adding new hooks, it may make sense to once run
# `pre-commit run --all-files` as by default only changed files are checked
# Automatically run before every commit via once running `pre-commit install`
# Skip notebooks entirely - they are not checked by any hook below.
exclude: '\.ipynb$'
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.22
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
# A bunch of other pre-defined hooks.
- id: check-yaml
description: Check yaml files for parseable syntax
- id: check-added-large-files
description: Prevent large files from being committed
- id: check-merge-conflict
description: Check for files that contain merge conflict strings
- id: check-symlinks
description: Check for symlinks which do not point to anything
- id: trailing-whitespace
description: Trim trailing whitespaces
- id: end-of-file-fixer
description: Fix empty lines at ends of files
- id: detect-private-key
description: Detects the presence of private keys