run mypy locally, bump mypy to 1.10.0, fix new errors

This commit is contained in:
pacrob
2024-07-03 11:55:44 -06:00
committed by Paul Robinson
parent 0326e34870
commit c5cc0ee969
6 changed files with 41 additions and 36 deletions

View File

@ -43,14 +43,14 @@ repos:
- id: mdformat
additional_dependencies:
- mdformat-gfm
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
- repo: local
hooks:
- id: mypy
additional_dependencies:
- mypy-protobuf
- trio-typing
exclude: 'tests/'
- id: mypy-local
name: run mypy with all dev dependencies present
entry: python -m mypy -p libp2p
language: system
always_run: true
pass_filenames: false
- repo: local
hooks:
- id: check-rst-files