forked from reagento/adaptix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
44 lines (39 loc) · 921 Bytes
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
files: |-
(?x)
^(?:
(src/.*)
|(tests/.*)
|(examples/.*)
|(docs/examples/.*)
|(docs/custom_ext/.*)
|(benchmarks/.*)
|(scripts/.*)
)$
default_stages:
- commit
- push
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: debug-statements
exclude: ^.*_312\.py$
- id: detect-private-key
- id: trailing-whitespace
- id: check-added-large-files
args: ['--maxkb=100']
- repo: 'https://github.com/myint/eradicate'
rev: 2.3.0
hooks:
- id: eradicate
args: ['-e'] # remove default --in-place argument and emit error
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.2
hooks:
- id: ruff
args: [ --fix-only ]
- repo: 'https://github.com/pycqa/isort'
rev: 5.13.2
hooks:
- id: isort