-
Notifications
You must be signed in to change notification settings - Fork 525
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
Apply black
to pyomo/core
directory py
files
#2777
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2777 +/- ##
=======================================
Coverage 87.01% 87.01%
=======================================
Files 763 763
Lines 87173 87213 +40
=======================================
+ Hits 75857 75892 +35
- Misses 11316 11321 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 3 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
|
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.
I found (and fixed) some places where black didn't quite make the strings / comments as clean as it could have. Everything else looked fine.
Fixes (Partly) #329
Summary/Motivation:
This is the first in a relatively long string of PRs to apply PEP8 standards via
black
to Pyomo. We are following the standard used by IDAES except that we are adding the-S
option:Don't normalize string quotes or prefixes
and the-C
option:Don't use trailing commas as a reason to split lines.
NOTE: All changes are NFC.
Full command used:
cd pyomo/core && black -S -C .
Changes proposed in this PR:
black
to thepyomo/core
directorypy
files" "
or' '
Legal Acknowledgement
By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution: