diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 54e2602..4e4d3d6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,3 +18,9 @@ repos: args: ['--maxkb=1000'] - id: check-merge-conflict - id: check-toml + + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.19.1 + hooks: + - id: mypy + additional_dependencies: ["types-tqdm"] diff --git a/test_unit.py b/test_unit.py index c84fa4c..59c6c20 100644 --- a/test_unit.py +++ b/test_unit.py @@ -109,7 +109,6 @@ def test_package_caches(self): assert identify_special_dir_name(".deno") == "Package Caches" assert identify_special_dir_name(".pnpm") == "Package Caches" assert identify_special_dir_name(".uv") == "Package Caches" - assert identify_special_dir_name("Homebrew") == "Package Caches" def test_ide_config(self): assert identify_special_dir_name(".idea") == "IDE Config" diff --git a/zpace/config.py b/zpace/config.py index 33e8f1d..8c163cf 100644 --- a/zpace/config.py +++ b/zpace/config.py @@ -190,7 +190,6 @@ ".bundle", ".bun", ".deno", - "homebrew", }, "IDE Config": {".idea", ".vscode", ".vs", ".eclipse", ".fleet"}, "Git Repos": {".git"}, diff --git a/zpace/core.py b/zpace/core.py index 2cf867b..b6d4132 100644 --- a/zpace/core.py +++ b/zpace/core.py @@ -1,5 +1,5 @@ -import os import heapq +import os from collections import defaultdict from pathlib import Path from typing import Dict, List, Optional, Tuple @@ -8,12 +8,12 @@ from zpace.config import ( DEEPEST_SKIP_LEVEL, + DEFAULT_TOP_N, EXTENSION_MAP, MIN_FILE_SIZE, PROGRESS_UPDATE_THRESHOLD, SKIP_DIRS, SPECIAL_DIR_MAP, - DEFAULT_TOP_N, )