Skip to content

Change from camel/mixed case to snake_case#275

Merged
virtuald merged 18 commits into
mainfrom
snake-case
Jul 9, 2026
Merged

Change from camel/mixed case to snake_case#275
virtuald merged 18 commits into
mainfrom
snake-case

Conversation

@virtuald

@virtuald virtuald commented Jun 29, 2026

Copy link
Copy Markdown
Member

This process was entirely AI-driven, using GPT 5.5 and the superpowers plugin. It's still running at the moment, but I figured I'd post it so that progress can be seen. It'll take awhile to review.

As part of the process, it did create some scripting to help out with automating the snake case conversion, so anyone reviewing this should consider looking there first.

@virtuald virtuald force-pushed the snake-case branch 6 times, most recently from 7b1db2d to cc6d3c6 Compare July 5, 2026 04:50
@virtuald

virtuald commented Jul 5, 2026

Copy link
Copy Markdown
Member Author

This is ready for other people to review and take a look at. Please point out any weird transforms that may have occurred that don't make any sense, or other potential improvements.

... don't about reviewing the snake case tooling, I'm going to extract that out and put it in a separate repo or something since it's a single-use thing.

@virtuald virtuald marked this pull request as ready for review July 5, 2026 13:07
@virtuald virtuald requested a review from a team July 5, 2026 13:08
@virtuald virtuald force-pushed the snake-case branch 2 times, most recently from 459f8d4 to 1d111d3 Compare July 5, 2026 18:06
@virtuald virtuald force-pushed the snake-case branch 3 times, most recently from f4b8a6d to 468d534 Compare July 6, 2026 13:38
Comment thread devtools/snake_case_migration/names.py Outdated
@virtuald virtuald force-pushed the snake-case branch 2 times, most recently from 9b965c3 to ac0f89a Compare July 7, 2026 00:45

@pjreiniger pjreiniger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

First pass review, doesn't include examples / snippets

Overall pretty good, looks much more pythonic! Most of my comments were about questionable renames in tests (command1 -> command_1, etc) I started marking those once per file where I saw it rather than every instance

There are also a couple of rpy C++ files that renamed things that aren't "techincally" necessary if they are getting wrapped anyway.

Overall, I'd classify pretty most of this as nitpicks that I wouldn't want blocking the PR

Comment thread examples/ntcore/simple_client.py Outdated
Comment thread examples/ntcore/simple_poller.py Outdated
Comment thread subprojects/pyntcore/ntcore/src/nt_instance.h Outdated
Comment thread subprojects/pyntcore/tests/test_struct_topic.py Outdated
Comment thread subprojects/robotpy-apriltag/tests/test_detection.py Outdated
Comment thread subprojects/robotpy-wpimath/tests/test_trajectory_exponential_profile.py Outdated
Comment thread subprojects/robotpy-wpimath/tests/test_units.py
Comment thread subprojects/robotpy-wpimath/wpimath/units.py Outdated
Comment thread subprojects/robotpy-wpiutil/wpiutil/src/wpistruct/wpystruct_fns.cpp Outdated
Comment thread subprojects/robotpy-wpiutil/wpiutil/src/wpistruct/wpystruct_fns.h Outdated

@pjreiniger pjreiniger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Quick pass of the examples. Much less weird naming, but caught a couple

Comment thread examples/robot/DifferentialDrivePoseEstimator/drivetrain.py Outdated
Comment thread examples/robot/ElevatorExponentialSimulation/subsystems/elevator.py Outdated
Comment thread examples/robot/ElevatorSimulation/subsystems/elevator.py Outdated
Comment thread examples/robot/SwerveBot/robot.py Outdated
Comment thread examples/robot/XrpReference/commands/arcadedrive.py Outdated
- build-system.requires: semiwrap~=0.6.0
@virtuald virtuald force-pushed the snake-case branch 3 times, most recently from 48de0f5 to 27b7425 Compare July 8, 2026 08:01
PeterJohnson pushed a commit to wpilibsuite/allwpilib that referenced this pull request Jul 9, 2026
This updates semiwrap to the latest version in preparation for the
camel_case change. This version allows you to specify name changes and
known words that get passed to the header2dat step of the build, which
required some changes to the bazel setup.

This should be basically a no-op at the moment, but makes it easier to
copybara things over once
robotpy/mostrobotpy#275 lands.
@virtuald

virtuald commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

:shipit:

@virtuald virtuald merged commit 6a3544b into main Jul 9, 2026
38 of 66 checks passed
@virtuald virtuald deleted the snake-case branch July 9, 2026 05:21
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.

RFC: Change native wrapped function names to snake_case

3 participants