mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 20:07:18 +01:00
`crdt-sync pre-commit` went red on the previous two commits: pytest is only referenced in annotations in the _cli split, so TC002 moves it into the type-checking block. Missed locally because I ran `ruff check` directly, while the hook passes `--fix --unsafe-fixes --exit-non-zero-on-fix`. TC002's fix is classed unsafe, so a bare `ruff check` reports nothing and CI still rewrites the file. The lesson generalises past this file: for this repo, `pre-commit run --all-files` is the check, not `ruff check` -- the same trap the prompt already recorded for re-export pruning. Verified after the fix: 18 tests, tool/google_id_token.py still 100% branch, and `pre-commit run --config crdt-sync/.pre-commit-config.yaml --all-files` clean end to end. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CFSGeWxHPY5rHUGrPqhcmG |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| _autherrors.py | ||
| _config.py | ||
| _credentials.py | ||
| _device.py | ||
| _fberrors.py | ||
| _fbkeys.py | ||
| _firebase_auth.py | ||
| _firebase.py | ||
| _gherrors.py | ||
| _github.py | ||
| _hlc.py | ||
| _http.py | ||
| _log.py | ||
| _mirror.py | ||
| _pull.py | ||
| _record.py | ||
| _remote.py | ||
| _revisions.py | ||
| _store.py | ||
| _sync.py | ||
| _syncargs.py | ||
| _syncstate.py | ||