-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
67 lines (61 loc) · 1.71 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
default_language_version:
python: python3
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.5
hooks:
- id: ruff
stages: [commit]
- id: ruff-format
stages: [commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.6.0"
hooks:
- id: check-merge-conflict
stages: [commit]
- id: debug-statements
stages: [commit]
- id: trailing-whitespace
stages: [commit]
- id: end-of-file-fixer
stages: [commit]
- id: check-ast
stages: [commit]
- id: check-builtin-literals
stages: [commit]
- repo: https://github.com/PyCQA/flake8
rev: "7.0.0"
hooks:
- id: flake8
args: [--config=.flake8]
additional_dependencies:
[
"git+https://github.com/RedHatQE/[email protected]",
"flake8-mutable",
"pep8-naming",
]
stages: [commit]
- repo: https://github.com/jorisroovers/gitlint
rev: "v0.19.1"
hooks:
- id: gitlint
stages: [commit-msg]
- repo: https://github.com/gitleaks/gitleaks
rev: "v8.18.2"
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
hooks:
- id: mypy
additional_dependencies: ["types-PyYAML", "types-requests"]
args:
- --ignore-missing-imports
- --follow-imports=silent
- --disable-error-code=attr-defined
- --disable-error-code=name-defined
- --disable-error-code=call-arg
- --disable-error-code=arg-type
- --disable-error-code=assignment
- --allow-untyped-defs
- --allow-untyped-calls