Lint Python type signatures using mypy

This commit is contained in:
Ohad Livne 2025-06-04 22:46:05 +03:00
parent e9eb300499
commit 5dcc5621b7
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
2 changed files with 5 additions and 1 deletions

View file

@ -8,7 +8,7 @@ def get_subtree_mtime(root: str | Path) -> float:
from os import walk from os import walk
from os.path import getmtime from os.path import getmtime
maxtime = 0 maxtime = 0.0
for dirname, _, filenames in walk(root): for dirname, _, filenames in walk(root):
dirpath = Path(dirname) dirpath = Path(dirname)

View file

@ -17,6 +17,10 @@ repos:
rev: 5.12.0 rev: 5.12.0
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
hooks:
- id: mypy
- repo: https://github.com/syntaqx/git-hooks - repo: https://github.com/syntaqx/git-hooks
rev: v0.0.18 rev: v0.0.18
hooks: hooks: