mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-10 19:07:15 +01:00
`requires-python` and the CI pin already said 3.14, but ruff, mypy and pylint were still grading against 3.10 -- three tools judging an interpreter nothing runs any more, and ruff withholding the pyupgrade fixes that only become safe at the newer target. `pin_ci_python.py` rewrites exactly these three knobs. The fixes ruff then had to make are what the stale target was hiding: 18 files on `datetime.timezone.utc` instead of `datetime.UTC` (UP017), plus ruff's stable formatter applying PEP 758 -- `except (A, B):` becomes `except A, B:`. That second one makes the source 3.14-only at the syntax level, which is exactly what `requires-python = ">=3.14"` already promised; kuhy chose it deliberately over holding ruff a release back (2026-08-29). ruff, ruff-format, mypy --strict and pylint all clean at the new target. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SfnJmxxsZ534AKk16rC2Gr |
||
|---|---|---|
| .. | ||
| build_kuchnia_credential_fixture.py | ||
| build_kuchnia_fixture.py | ||
| bump_patch_version.sh | ||
| check_dependency_freshness.sh | ||
| check_file_length.sh | ||
| check_md_naming.sh | ||
| check_no_crdt_sync_override.sh | ||
| check_patch_targets.py | ||
| check_requirements_sync.py | ||
| ci_mirror.sh | ||
| probe_kuchnia_auth.py | ||
| probe_kuchnia_details.py | ||
| probe_kuchnia_shape.py | ||
| probe_kuchnia.py | ||
| setup_mcp.sh | ||
| sync_freshness.py | ||