-
Notifications
You must be signed in to change notification settings - Fork 310
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
GitHub Action to spellcheck and lint Python code #899
Conversation
7f7acfd
to
d27fbbd
Compare
@@ -29,7 +29,7 @@ def loadCsvData( dataFileName ): | |||
inputDevice = "" | |||
outputDevice = "" | |||
|
|||
startLines = file(dataFileName).readlines(1024) | |||
startLines = open(dataFileName).readlines(1024) |
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.
The from pylab import *
above was hiding the file()
issue that is just like:
I'd prefer to consider the python fixes and the CI workflow as separate PRs. The fixes are uncontroversial and can me merged as is (although maybe an additional improvement is to explicitly scope the The CI I'm not sure about due to imposing linting opinions that I have no idea about since I've never used ruff or codespell. |
Removed the CI workflow. |
Thank you! |
The CI automation part that was removed from * PortAudio#899 * PortAudio#898
This Action uses minimal steps to run in ~5 seconds to rapidly:
codespell
to look for typos in the codebase, andruff
to lint Python code and provide intuitive GitHub Annotations to contributors.Tools:
@RossBencina