Skip to content

Context-form retrofit (batch 3): powerOffReset, shutdown_checkpoints, offlinePages, deviceHealthServices_Battery#908

Merged
abrignoni merged 1 commit into
mainfrom
context-retrofit-batch3
Jun 24, 2026
Merged

Context-form retrofit (batch 3): powerOffReset, shutdown_checkpoints, offlinePages, deviceHealthServices_Battery#908
abrignoni merged 1 commit into
mainfrom
context-retrofit-batch3

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Batch 3 (6 functions / 4 files). Same pattern: 4-arg → def fn(context), and context.get_relative_path() on the Source/Source File column (+ offlinePages' joined source-path return).

  • powerOffReset / shutdown_checkpointsSource File column. Also cleaned pre-existing CI lint issues exposed by touching them: open() without encoding=encoding='utf-8' (the known ALEAPP CI failure), removed an unused pattern2 and unused logfunc import.
  • offlinePagesSource in Extraction column + joined source_path return.
  • deviceHealthServices_BatteryTurbo_Battery + Turbo_Bluetooth Source columns (kept the W0718 disable for the existing except Exception blocks; dropped W0613).

pylint 10.00, all 6 context form, imports clean. 12 of 28 done.

…eckpoints, offlinePages, deviceHealthServices_Battery

Batch 3 (6 functions / 4 files). 4-arg -> def fn(context); the Source/Source File
column (and offlinePages' joined source_path) now use context.get_relative_path().

- powerOffReset / shutdown_checkpoints: 'Source File' column; also fixed
  pre-existing CI lint issues exposed by touching them (open() without
  encoding= -> encoding='utf-8'; removed unused pattern2 / logfunc).
- offlinePages: 'Source in Extraction' column + joined source_path return.
- deviceHealthServices_Battery: Turbo_Battery + Turbo_Bluetooth 'Source' columns
  (kept the W0718 disable for the existing except Exception blocks).
All 6 context form; pylint 10.00.
@abrignoni abrignoni merged commit b1556df into main Jun 24, 2026
2 checks passed
@abrignoni abrignoni deleted the context-retrofit-batch3 branch June 24, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant