Skip to content

Commit acbd0c0

Browse files
committed
pre-commit: add mypy
1 parent 98a759f commit acbd0c0

File tree

1 file changed

+33
-25
lines changed

1 file changed

+33
-25
lines changed

.pre-commit-config.yaml

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
default_language_version:
2-
python: python3
2+
python: python3
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
66
rev: "v4.5.0"
77
hooks:
8-
- id: check-added-large-files
9-
- id: check-docstring-first
10-
- id: check-executables-have-shebangs
11-
- id: check-merge-conflict
12-
- id: check-symlinks
13-
- id: check-yaml
14-
args:
15-
- "--allow-multiple-documents"
16-
# https://github.com/pre-commit/pre-commit-hooks/issues/273
17-
- "--unsafe"
18-
- id: detect-private-key
19-
- id: mixed-line-ending
20-
- id: debug-statements
21-
- id: trailing-whitespace
22-
args: [--markdown-linebreak-ext=md] # Do not process Markdown files.
23-
- id: end-of-file-fixer
24-
- id: check-ast
25-
- id: check-builtin-literals
26-
- id: check-docstring-first
27-
- id: check-toml
8+
- id: check-added-large-files
9+
- id: check-docstring-first
10+
- id: check-executables-have-shebangs
11+
- id: check-merge-conflict
12+
- id: check-symlinks
13+
- id: check-yaml
14+
args:
15+
- "--allow-multiple-documents"
16+
# https://github.com/pre-commit/pre-commit-hooks/issues/273
17+
- "--unsafe"
18+
- id: detect-private-key
19+
- id: mixed-line-ending
20+
- id: debug-statements
21+
- id: trailing-whitespace
22+
args: [--markdown-linebreak-ext=md] # Do not process Markdown files.
23+
- id: end-of-file-fixer
24+
- id: check-ast
25+
- id: check-builtin-literals
26+
- id: check-docstring-first
27+
- id: check-toml
2828

2929
- repo: https://github.com/PyCQA/flake8
3030
rev: "7.0.0"
3131
hooks:
3232
- id: flake8
33-
additional_dependencies: [
34-
"git+https://github.com/RedHatQE/flake8-plugins.git",
35-
"flake8-mutable",
36-
]
33+
additional_dependencies:
34+
[
35+
"git+https://github.com/RedHatQE/flake8-plugins.git",
36+
"flake8-mutable",
37+
]
3738

3839
- repo: https://github.com/Yelp/detect-secrets
3940
rev: v1.4.0
@@ -56,3 +57,10 @@ repos:
5657
rev: 37.264.0
5758
hooks:
5859
- id: renovate-config-validator
60+
61+
- repo: https://github.com/pre-commit/mirrors-mypy
62+
rev: v1.9.0
63+
hooks:
64+
- id: mypy
65+
exclude: ^(tests/)
66+
additional_dependencies: [types-all]

0 commit comments

Comments
 (0)