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
Reduce cognitive complexity (S3776) in download_file, rotate_backups, the
tar-member verifier, json_edit set/delete walkers, run_shell, execute_action_dag,
_group_by_size, scandir_find, and the cron field parser by extracting helpers
with single responsibilities. Behaviour is unchanged; the full test suite still
passes.
Collapse redundant except tuples (S5713) where the listed subclass already
inherits from another entry (shutil.Error/OSError, PermissionError/OSError,
ModuleNotFoundError/ImportError, ManifestException/FileAutomationException).
Extract the duplicated 'application/json' content-type to a module-level
_JSON_HEADERS constant in notify/sinks.py (S1192). Switch the substitution regex
to the concise '\w' class with re.ASCII to preserve ASCII-only matching (S6353).
Drop the unused 'source' parameter from _delete_extras (S1172). Replace tuple
float equality in three tests with pytest.approx (S1244) and mark the obvious
test-fixture credentials with NOSONAR (S2068). Clean up test_notify.py's
Iterator annotation (S5886), the empty _Recorder.send body (S1186), the empty
time_budget block in test_quota.py (S108), and the generator-throw trick in
test_action_executor.py (S7500).
0 commit comments