-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Pre-Commit Python Linting #44
Conversation
7dbc951
to
3f9eee0
Compare
2402ff5
to
3233375
Compare
What are your thoughts on flake8 vs Black for linting Python code? |
They are complementary. |
Gotcha, so this PR adds the linter and optional type checking (with Mypy), but not the formatter. Is that correct? |
Yes. The previous PR (#42 ) added the formatter. The reason I split it up this way is that the formatter is guaranteed to not change code functionality. Whereas when I implement linting fixes, it is possible to change code functionality. So I wanted them to be in two separate PRs, to be able to more easily test and compare the diff. |
Great, that makes sense. Since you've confirmed that no functionality is broken from the changes in these large PRs, I've approved these two PRs (#42 and this one). Are you planning on merging them into mainline? |
Yes I'll merge them. I'm just waiting on to test it on a Stretch 2 without a dex wrist, and will then merge them in. |
Cool! I have one, so I can test this next week if you need it. |
3f9eee0
to
4cfaee6
Compare
3233375
to
75af5e0
Compare
Merging without testing on the "Stretch RE2 + no dex wrist w/ beta teleop kit" configuration because:
|
Description
This PR, in partial service of #43 , builds off of #42 to add Python linting to the pre-commit hooks.
Testing procedure
Before opening a pull request
From the top-level of this repository, run:
pre-commit run --all-files
To merge
Squash & Merge