You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Silence the three autonerves-rooted CLI-noise sources
Fixes the three root causes identified by the 2026-08-06 /cli_noise_clean
audit (PyAutoMind draft/maintenance/pyautonerves/cli_noise_autonerves_batch.md):
1. fits leak — fitsable.ndarray_via_fits_from and header_obj_from called
fits.open without closing, emitting 'ResourceWarning: unclosed file' in
every downstream repo that loads FITS. Both now use 'with fits.open(...)'.
2. pytest collection — test_test_mode.py imported the real API functions
test_mode_level/test_mode_samples by bare name, so pytest collected them
as tests (PytestReturnNotNoneWarning, an ERROR in future pytest). The
unused test_mode_level import is dropped and test_mode_samples is
aliased to _test_mode_samples.
3. check_version false positive — with workspace_root defaulting to cwd,
every library import from inside a library's own source repo warned
'Cannot verify the workspace ... is compatible'. check_version now skips
silently when the root is a package source checkout (setup.py or
pyproject.toml at its top level) and no version floor is recorded; a
recorded floor is still enforced, and a genuine workspace missing its
version keys still warns.
Regression tests added for all three.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015NrwGppUCg8r4Foed6bgSf
0 commit comments