-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
28 lines (28 loc) · 1 KB
/
.pre-commit-config.yaml
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: mixed-line-ending # replaces or checks mixed line ending
- id: check-symlinks # checks for symlinks which do not point to anything
- id: check-added-large-files
# Git
- id: check-merge-conflict # checks for files that contain merge conflict strings
# Python
- id: check-docstring-first # checks a common error of defining a docstring after code
- id: debug-statements # checks for debugger imports and py37+ `breakpoint()` calls in python source
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
name: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.9.6'
hooks:
- id: ruff
args: ["--fix"]