Skip to content

drivers: Migrate camelCase public methods to snake_case. #82

@nedseb

Description

@nedseb

Problem

Several drivers used camelCase for public methods, while the project convention is snake_case.

Resolution

All camelCase public methods have been migrated to snake_case across 4 drivers, and ruff rules have been enabled to prevent regressions.

Sub-issues (all completed)

Per-driver migration

CI enforcement

Final state

Driver Status
apds9960 snake_case (66 methods migrated)
bq27441 snake_case (28 methods migrated)
hts221 snake_case (7 methods migrated)
ism330dl snake_case (always was)
lis2mdl snake_case (variables cleaned)
mcp23009e snake_case (always was)
ssd1327 snake_case (example fixed)
vl53l1x snake_case (comments cleaned)
wsen-hids snake_case (variables cleaned)
wsen-pads snake_case (always was)

Ruff rules enabled

  • N802: function name should be lowercase
  • N803: argument name should be lowercase
  • N806: variable in function should be lowercase (examples excluded)
  • T20: no print() in production code (examples and tests excluded)

No backward-compatibility aliases were added (no release has been made yet).

Next steps

This issue unblocks the remaining harmonization issues (#76#81).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrefactorNettoyage/harmonisation sans changement fonctionnel

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions