Skip to content

Commit

Permalink
chore: bump mypy, move config from pre-commit
Browse files Browse the repository at this point in the history
Bumps mypy to latest version, 0.991.

Config for mypy is moved from the pre-commit hook definition to
mypy.ini, and in addition `pretty = True` is set to show more human
friendly error messages.
  • Loading branch information
aiven-anton committed Nov 25, 2022
1 parent d60b6d3 commit 61d560a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,11 @@ repos:
files: \.py$

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.942
rev: v0.991
hooks:
- id: mypy
name: Mypy Karapace
pass_filenames: false
args:
- "--show-error-codes"
- "--ignore-missing-imports"
- "--package"
- "karapace"

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
Expand Down
3 changes: 3 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[mypy]
python_version = 3.7
packages = karapace
show_error_codes = True
pretty = True
warn_redundant_casts = True
ignore_errors = False
disallow_untyped_defs = True
Expand Down

0 comments on commit 61d560a

Please sign in to comment.