From f793545468fc45a9655689da571d9df560e63d35 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Mon, 16 Nov 2026 09:18:00 +0100 Subject: [PATCH] Fix the pylint hook env and its stale pins The hook environment pinned its own gatelock 0.12.0, which predates watch_credit, so pylint reported the import as missing; moved to the pyproject pins. The env also ran on pre-commit's own Python 3.15, where pylint's parallel jobs crash in dill (no co_lnotab) whenever two files are linted together; it now uses the repo's 3.14. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WzxdWWfb63jncj9Lca2jeX --- .pre-commit-config.yaml | 12 ++++++++---- app/pubspec.yaml | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d32ce69..1dba1ac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -96,6 +96,10 @@ repos: rev: v3.3.2 hooks: - id: pylint + # pre-commit itself runs on 3.15 and `python3` resolves to it; this + # pylint's --jobs=4 pickles with dill, which crashes there + # (no `co_lnotab`). The repo targets 3.14. + language_version: python3.14 args: - --rcfile=pyproject.toml - --fail-under=10 @@ -107,10 +111,10 @@ repos: # direct URLs for one distribution, so any pin that drifts from # the manifest becomes an unresolvable hook environment rather # than merely an old one. - - gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.12.0#subdirectory=gatelock - - crdt-sync @ git+https://github.com/kuhyx/utils@crdt-sync-v0.11.0#subdirectory=crdt-sync - - freedays @ git+https://github.com/kuhyx/utils@freedays-v0.4.2#subdirectory=freedays - - sickdays @ git+https://github.com/kuhyx/utils@sickdays-v0.5.3#subdirectory=sickdays + - gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.14.0#subdirectory=gatelock + - crdt-sync @ git+https://github.com/kuhyx/utils@crdt-sync-v0.11.1#subdirectory=crdt-sync + - freedays @ git+https://github.com/kuhyx/utils@freedays-v0.4.3#subdirectory=freedays + - sickdays @ git+https://github.com/kuhyx/utils@sickdays-v0.5.4#subdirectory=sickdays - mcp>=2,<3 - pydantic - defusedxml==0.7.1 diff --git a/app/pubspec.yaml b/app/pubspec.yaml index 4c19350..e67fd11 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -2,7 +2,7 @@ name: diet_guard_app description: "Companion phone app for diet_guard: log meals on the go." publish_to: 'none' -version: 1.0.158+1 +version: 1.0.159+1 environment: sdk: ^3.12.2