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/version directory py files #2721

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

mrmundt
Copy link
Contributor

@mrmundt mrmundt commented Feb 2, 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/version && black -S -C .

Changes proposed in this PR:

  • Apply black to the pyomo/version directory py files

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 review from jsiirola and blnicho February 2, 2023 22:29
@codecov
Copy link

codecov bot commented Feb 3, 2023

Codecov Report

Base: 87.04% // Head: 87.12% // Increases project coverage by +0.07% 🎉

Coverage data is based on head (bbc492a) compared to base (9ee4235).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2721      +/-   ##
==========================================
+ Coverage   87.04%   87.12%   +0.07%     
==========================================
  Files         766      768       +2     
  Lines       86079    86811     +732     
==========================================
+ Hits        74929    75635     +706     
- Misses      11150    11176      +26     
Flag Coverage Δ
linux 84.18% <100.00%> (-0.02%) ⬇️
osx 73.59% <100.00%> (-0.03%) ⬇️
other 84.37% <100.00%> (-0.02%) ⬇️
win 81.55% <100.00%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
pyomo/version/info.py 78.57% <100.00%> (ø)
pyomo/scripting/plugins/download.py 69.38% <0.00%> (-14.29%) ⬇️
pyomo/contrib/mindtpy/iterate.py 79.54% <0.00%> (-1.82%) ⬇️
pyomo/gdp/plugins/bigm.py 98.01% <0.00%> (-0.37%) ⬇️
pyomo/gdp/plugins/gdp_to_mip_transformation.py 99.14% <0.00%> (ø)
pyomo/gdp/plugins/bigm_mixin.py 94.01% <0.00%> (ø)
pyomo/contrib/gdpopt/util.py 94.82% <0.00%> (+0.06%) ⬆️
pyomo/gdp/plugins/hull.py 94.80% <0.00%> (+0.15%) ⬆️
pyomo/core/expr/visitor.py 93.40% <0.00%> (+0.15%) ⬆️
pyomo/gdp/util.py 92.37% <0.00%> (+0.81%) ⬆️
... and 2 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.

@mrmundt mrmundt force-pushed the black/pyomo/version branch from 9131635 to bbc492a Compare February 7, 2023 17:55
@mrmundt mrmundt requested a review from blnicho February 7, 2023 17:55
@blnicho blnicho merged commit b991efa into Pyomo:main Feb 8, 2023
@mrmundt mrmundt deleted the black/pyomo/version 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.

3 participants