Skip to content

Rename module to snake_case - #79

Open
irgolic wants to merge 3 commits into
NativeSensors:mainfrom
irgolic:rename-module-to-underscore-case
Open

Rename module to snake_case#79
irgolic wants to merge 3 commits into
NativeSensors:mainfrom
irgolic:rename-module-to-underscore-case

Conversation

@irgolic

@irgolic irgolic commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Regardless of what the PyPi package is called (EyeGestures, camelCase), the python convention is for modules to he written in underscore_case.

This PR renamespaces the module from eyeGestures to eye_gestures, and adds a graceful deprecation import fallback, so it shouldn't break anything for current users – it will however emit a DeprecationWarning. You don't need to remove the eyeGestures import redirect for at least a few years (if ever, if the extra filename doesn't bother you).

I've also added a unit test for this deprecation.

@irgolic
irgolic force-pushed the rename-module-to-underscore-case branch from 85d8d6f to 01904b5 Compare August 25, 2026 23:54
@irgolic
irgolic force-pushed the rename-module-to-underscore-case branch from 01904b5 to ea695e5 Compare August 25, 2026 23:57

@PeterWaIIace PeterWaIIace left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let''s make it eyegestures instead of eye_gestures

@irgolic irgolic changed the title Rename module to underscore_case Rename module to snake_case Aug 27, 2026
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.

2 participants