Msn crtl tester#32
Conversation
if you don't want to do the whole writing full words without abbreviations, that thats fine, but the biggest culprits that do have an issue with variable naming are: robosub_software_2025/test_msn_ctrl.py Lines 46 to 47 in e3dbb91 robosub_software_2025/test_msn_ctrl.py Line 58 in e3dbb91 robosub_software_2025/test_msn_ctrl.py Line 69 in e3dbb91 robosub_software_2025/test_msn_ctrl.py Line 77 in e3dbb91 robosub_software_2025/test_msn_ctrl.py Line 84 in e3dbb91
@rsunderr, @AustinOwens please add anything you think as well |
|
I know that both you and Kai know the code backwards and forwards, so I'm not code to review what the code does functionally. When it comes to formatting and proper "pythonic" programming, why not run linters and formaters on your python code? I do this all the time at work...in fact, every time I save the file in my editor, it does it for me automatically. It typically runs the following linters and formaters:
That way you never have to worry about the formatting stuff again. And if the whole software team adopts these (or a subset of these), all code will look the same and it makes reviewing easier in the long run. Oh, and you can also setup a CI/CD pipeline in your repo that forces compliance to these formaters and linters, and if it's not compliant, the pull request will be automatically flagged with a warning telling the person to fix it before it can be merged to main/master. |
I had mixed feelings on this I have definitely gone back and fourth thinking about it. On one hand its obviously very nice to have something always checking your style to make sure you're following a guideline, on the other hand it was another friction point between showing up at the GBM and making their first commit. I don't really have strong feelings either way, but I eventually decided against it at the time because we were trying to make onboarding as simple as possible. Basically it would be nice for those who know what they're doing, but not great for a newbie, and our top priority at the time was getting more people. |
|
Yah, I understand. And I know members are just starting to learn Git for the first time. I can see both sides. Of course, it's ultimately up to you all. You have time before the next competition and I think if any group at SDSU can figure it out, it's Mechatronics. |
hello