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

Apply black to pyomo/repn directory py files #2737

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

mrmundt
Copy link
Contributor

@mrmundt mrmundt commented Feb 14, 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.

Full command used: cd pyomo/repn && black -S -C .

Changes proposed in this PR:

  • Apply black to the pyomo/repn directory py files
  • Manually fixed odd spacing introduced by merging lines (@blnicho )

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.

@codecov
Copy link

codecov bot commented Feb 14, 2023

Codecov Report

Base: 82.23% // Head: 86.98% // Increases project coverage by +4.75% 🎉

Coverage data is based on head (7c30d21) compared to base (3d8a9a0).
Patch coverage: 82.45% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2737      +/-   ##
==========================================
+ Coverage   82.23%   86.98%   +4.75%     
==========================================
  Files         771      771              
  Lines       86306    86309       +3     
==========================================
+ Hits        70975    75078    +4103     
+ Misses      15331    11231    -4100     
Flag Coverage Δ
linux 84.15% <82.45%> (?)
osx 73.63% <82.02%> (?)
other 84.34% <82.16%> (?)
win 81.52% <81.88%> (?)

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

Impacted Files Coverage Δ
pyomo/repn/plugins/__init__.py 100.00% <ø> (ø)
pyomo/repn/standard_aux.py 50.00% <ø> (ø)
pyomo/repn/beta/matrix.py 74.31% <54.54%> (ø)
pyomo/repn/plugins/gams_writer.py 85.42% <66.66%> (ø)
pyomo/repn/plugins/baron_writer.py 81.84% <70.90%> (ø)
pyomo/repn/plugins/ampl/ampl_.py 81.40% <79.35%> (-1.47%) ⬇️
pyomo/repn/standard_repn.py 88.28% <88.15%> (ø)
pyomo/repn/plugins/cpxlp.py 93.48% <93.54%> (ø)
pyomo/repn/plugins/mps.py 93.03% <94.64%> (ø)
pyomo/repn/plugins/nl_writer.py 93.62% <96.15%> (-0.15%) ⬇️
... and 114 more

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

@blnicho blnicho merged commit 5a58691 into Pyomo:main Feb 15, 2023
@mrmundt mrmundt deleted the black/pyomo/repn branch March 30, 2023 14:49
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