-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
50 lines (50 loc) · 1.37 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/d9pouces/mybestpractices
rev: 0.3.8
hooks:
- id: mybestpractices-git-autotag
args: [--only-branch, 'dev,master']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
hooks:
- id: ruff
exclude: ^(npm/node_modules/.*)
- id: ruff-format
exclude: ^(npm/node_modules/.*)
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
hooks:
- id: pretty-format-ini
args: [--autofix]
exclude: ^(npm/node_modules/.*)
- id: pretty-format-toml
args: [--autofix]
exclude: ^(npm/node_modules/.*)
- id: pretty-format-yaml
args: [--autofix]
exclude: ^(npm/node_modules/.*)
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: rst-inline-touching-normal
- id: rst-directive-colons
- id: rst-backticks
- id: python-no-log-warn
- id: python-no-eval
- id: python-check-mock-methods
- id: python-check-blanket-noqa
default_language_version:
python: python3.12