-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
31 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
29
30
31
repos:
- repo: local
hooks:
- id: breakpoint-check
name: Check for breakpoint calls
description: This hook checks for any calls to breakpoint.
entry: sh -c 'find . -name "*.py" ! -path "./venv/*" -exec grep -Hn "breakpoint(" {} +; test $? -ne 0'
language: system
types: [ python ]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.6
hooks:
- id: ruff
args: [ --fix, --preview ]
- repo: https://github.com/rubik/xenon
rev: v0.9.1
hooks:
- id: xenon
exclude: ^(tests|migrations)/
args:
- --max-absolute=B
- --max-modules=B
- --max-average=B
description: Analyze code complexity with Xenon
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint