Skip to content
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

Reapply black to previously completed directories #2775

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

mrmundt
Copy link
Contributor

@mrmundt mrmundt commented Mar 21, 2023

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.

Changes proposed in this PR:

  • Reapply black to all previously modified directories

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:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@mrmundt mrmundt requested a review from blnicho March 21, 2023 16:10
@codecov
Copy link

codecov bot commented Mar 22, 2023

Codecov Report

Patch coverage: 87.50% and no project coverage change.

Comparison is base (b6af7b0) 87.01% compared to head (9ea1ce5) 87.01%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2775   +/-   ##
=======================================
  Coverage   87.01%   87.01%           
=======================================
  Files         763      763           
  Lines       87123    87123           
=======================================
+ Hits        75807    75808    +1     
+ Misses      11316    11315    -1     
Flag Coverage Δ
linux 84.02% <87.50%> (+<0.01%) ⬆️
osx 73.51% <87.50%> (ø)
other 84.20% <87.50%> (ø)
win 81.52% <87.50%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pyomo/scripting/driver_help.py 64.20% <ø> (ø)
pyomo/scripting/pyomo_main.py 72.34% <50.00%> (ø)
examples/pyomobook/scripts-ch/value_expression.py 100.00% <100.00%> (ø)
pyomo/repn/plugins/gams_writer.py 85.42% <100.00%> (ø)
pyomo/repn/plugins/nl_writer.py 93.81% <100.00%> (ø)

... and 1 file 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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mrmundt mrmundt merged commit f74ee5e into Pyomo:main Mar 22, 2023
@mrmundt mrmundt deleted the black/reapply branch July 25, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants