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 the root directory py files #2718

Merged
merged 1 commit into from
Feb 7, 2023
Merged

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: black -S -C *.py

Changes proposed in this PR:

  • Apply black to the root 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 21:57
@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 (ce67d33) compared to base (9ee4235).
Patch coverage: 100.00% of modified lines in pull request are covered.

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

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

Impacted Files Coverage Δ
conftest.py 86.36% <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/bigm_mixin.py 94.01% <0.00%> (ø)
pyomo/gdp/plugins/gdp_to_mip_transformation.py 99.14% <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 1 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 merged commit 49fb44e into Pyomo:main Feb 7, 2023
@mrmundt mrmundt deleted the black/root 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