-
Notifications
You must be signed in to change notification settings - Fork 23
Pep8 compliance #111
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
Comments
MarkusHackspacher
added a commit
to MarkusHackspacher/Parallel.GAMIT
that referenced
this issue
Oct 11, 2024
demiangomez#111 Have some suggestions todo pep8
Merged
espg
pushed a commit
to espg/Parallel.GAMIT
that referenced
this issue
Oct 11, 2024
demiangomez#111 Have some suggestions todo pep8
MarkusHackspacher
added a commit
to MarkusHackspacher/Parallel.GAMIT
that referenced
this issue
Oct 14, 2024
* PEP8 improvements demiangomez#111 Have some suggestions todo pep8 * more pep8 updates * rolling back for auto-merge * one more roll back for auto-merge * PEP8 improvements demiangomez#111 Have some suggestions todo pep8 * eq.date.year, eq.date.doy * minor update * easy flake8 fixes --------- Co-authored-by: Markus Hackspacher <hackspacher@gmx.de>
This was referenced Oct 17, 2024
This was referenced Oct 25, 2024
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is pep8?
Pep8 is the official style guide for python, it defines conventions to make code cleaner and easier to understand. There is automated checking for pep8 compliance using flake8.
How is pgamit doing with flake8 right now?
Poorly. We have 3,719 pep8 violations in our codebase-- i.e., starting here and going to here.
Here's the breakdown by violation code/type:
Most of these are very minor and easy to fix, but there are enough of them that it will take time.
Do we really need to fix these? It seems like a lot of work...
These are 'warnings' rather than 'errors', so we don't have to fix them-- but we shouldn't add more, and can fix them slowly during the general software development process.
So what do you recommend?
I'm working on an 'on pull_request' github action that will run for PR's and fail to pass checks if the modified code isn't pep8 compliant. This will ensure that the new code we produce doesn't make the situation worse moving forward. I'll also add instructions to (and create) our contributors guide for this.
As @pdsmith90 , @demiangomez , myself, and others get used to checking for flake8 on code, we'll also be working on enhancements, bugfixes, and updates to existing code files in pgamit. Because we'll get flagged for pep8 on those files during the PR process, we can start to fix the backlog above in 15 and 20 minute chunks as we interact with the existing codebase, which should spread out the effort and make it less noticeable in terms of effort spent on this.
The text was updated successfully, but these errors were encountered: