Skip to content

Commit

Permalink
pre-commit: add mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
myakove committed Apr 11, 2024
1 parent 98a759f commit acbd0c0
Showing 1 changed file with 33 additions and 25 deletions.
58 changes: 33 additions & 25 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
default_language_version:
python: python3
python: python3

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.5.0"
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
args:
- "--allow-multiple-documents"
# https://github.com/pre-commit/pre-commit-hooks/issues/273
- "--unsafe"
- id: detect-private-key
- id: mixed-line-ending
- id: debug-statements
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md] # Do not process Markdown files.
- id: end-of-file-fixer
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-toml
- id: check-added-large-files
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
args:
- "--allow-multiple-documents"
# https://github.com/pre-commit/pre-commit-hooks/issues/273
- "--unsafe"
- id: detect-private-key
- id: mixed-line-ending
- id: debug-statements
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md] # Do not process Markdown files.
- id: end-of-file-fixer
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-toml

- repo: https://github.com/PyCQA/flake8
rev: "7.0.0"
hooks:
- id: flake8
additional_dependencies: [
"git+https://github.com/RedHatQE/flake8-plugins.git",
"flake8-mutable",
]
additional_dependencies:
[
"git+https://github.com/RedHatQE/flake8-plugins.git",
"flake8-mutable",
]

- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
Expand All @@ -56,3 +57,10 @@ repos:
rev: 37.264.0
hooks:
- id: renovate-config-validator

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
- id: mypy
exclude: ^(tests/)
additional_dependencies: [types-all]

0 comments on commit acbd0c0

Please sign in to comment.