From 5dcc5621b7a38f212028a846debae3ecceda2404 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Wed, 4 Jun 2025 22:46:05 +0300 Subject: [PATCH] Lint Python type signatures using mypy --- .local/bin/dirtree-changed | 2 +- .pre-commit-config.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.local/bin/dirtree-changed b/.local/bin/dirtree-changed index 3220477..1b52f4e 100755 --- a/.local/bin/dirtree-changed +++ b/.local/bin/dirtree-changed @@ -8,7 +8,7 @@ def get_subtree_mtime(root: str | Path) -> float: from os import walk from os.path import getmtime - maxtime = 0 + maxtime = 0.0 for dirname, _, filenames in walk(root): dirpath = Path(dirname) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d5b3ea6..a9baa7a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,10 @@ repos: rev: 5.12.0 hooks: - id: isort +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.7.1 + hooks: + - id: mypy - repo: https://github.com/syntaqx/git-hooks rev: v0.0.18 hooks: