mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 21:27:14 +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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_config_client.py | ||
| test_config_credentials.py | ||
| test_config.py | ||
| test_device.py | ||
| test_firebase_auth_google.py | ||
| test_firebase_auth_session.py | ||
| test_firebase_auth_tokens.py | ||
| test_firebase_auth.py | ||
| test_firebase_writes.py | ||
| test_firebase.py | ||
| test_github_writes.py | ||
| test_github.py | ||
| test_hlc.py | ||
| test_log.py | ||
| test_mirror_fallback.py | ||
| test_mirror.py | ||
| test_record.py | ||
| test_store.py | ||
| test_sync_revisions_backends.py | ||
| test_sync_revisions_peers.py | ||
| test_sync_revisions.py | ||
| test_sync_skips.py | ||
| test_sync.py | ||
| test_tool_google_id_token_cli.py | ||
| test_tool_google_id_token.py | ||
| test_tool_oauth_callback.py | ||