-
Notifications
You must be signed in to change notification settings - Fork 127
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 Python linter to github actions #1100
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! A few pieces of feedback
Also, does the new check pass currently? If not, this pr should probably introduce the changes required for it to do so
Also, black is a formatter rather than a linter. For linting, we use mypy. Though I imagine getting that set up and fixing all issues is a lot more work, so we can tackle that later. I'd just rename the pr / step in the yaml to say format rather than lint |
Renamed |
If you like, I can include the ~60 files that would be reformatted. It would still not pass, though, due to tools/star_rod_idx_to_c.py:422 |
Could you add the files, and then I'll fix the issue with that one script? |
Done |
Since we have the "Lint" workflow off (since c linting is a bag of worms we haven't really figured out yet for this project), this won't run after we merge it. I think it'd be fine if we made a Python Lint workflow (a new yaml) and put this there, which we could enable. Would you like me to do that, or do you want to? |
I'm also observing that only the most recent instance |
Wouldn't excludes usually be defined in |
I'm not sure, but this isn't really a python project so it seems weird to have such a file for it. I also wouldn't know how to set it up to work with black, but I guess if someone wants to do that, that's cool |
I'm not going to be able to make any changes for another day or so. Feel free to make any further changes and commit without me. |
shounds good. Thanks for this effort! Definitely long overdue |
This would be worth doing before merge I think, to support other editors |
good pr though, thanks! |
* Add Python linter to github actions * wip * Add back splat_ext * Format files * C++ -> C * format 2 files * split workflow into separate file, line length 120, fix excludes * -l 120 in ci * update black locally and apply formatting changes * pyproject.toject --------- Co-authored-by: Ethan Roseman <ethteck@gmail.com>
Adding black to the CI as requested here: #949
This PR only adds the check, it does not format. That would make this change larger than I'd like.
Note, that it finds unusual code in
tools/star_rod_idx_to_c.py:422