forked from RedHatQE/openshift-virtualization-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
86 lines (80 loc) · 2.22 KB
/
.pre-commit-config.yaml
File metadata and controls
86 lines (80 loc) · 2.22 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
default_language_version:
python: python3.14
repos:
- repo: https://github.com/PyCQA/autoflake
rev: "v2.3.3"
hooks:
- id: autoflake
args:
- --in-place
- --remove-unused-variables
- --remove-all-unused-imports
stages: [pre-commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.1
hooks:
- id: ruff
stages: [pre-commit]
- id: ruff
name: sort imports with ruff
args: [--select, I, --fix]
- id: ruff-format
stages: [pre-commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v6.0.0"
hooks:
- id: check-merge-conflict
stages: [pre-commit]
- id: debug-statements
stages: [pre-commit]
- id: trailing-whitespace
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: check-ast
stages: [pre-commit]
- id: check-builtin-literals
stages: [pre-commit]
- id: detect-private-key
- id: mixed-line-ending
- repo: https://github.com/PyCQA/flake8
rev: "7.3.0"
hooks:
- id: flake8
language_version: python3.14
args: [--config=.flake8]
exclude: "(utilities/unittests/|utilities/junit_ai_utils\\.py|scripts/std_placeholder_stats/tests/)"
additional_dependencies:
[
"git+https://github.com/RedHatQE/flake8-plugins.git@v1.0.0",
"flake8-mutable",
"pep8-naming",
]
stages: [pre-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.30.0"
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.20.0
hooks:
- id: mypy
exclude: "test_(.*).py$"
additional_dependencies:
[
"types-PyYAML",
"types-requests",
"types-paramiko",
"types-beautifulsoup4",
"pytest",
"types-xmltodict",
"types-setuptools",
"types-pexpect",
"types-netaddr",
"types-cachetools"
]