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/solvers directory py files #2732

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

mrmundt
Copy link
Contributor

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

Changes proposed in this PR:

  • Apply black to the pyomo/solvers 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.

@codecov
Copy link

codecov bot commented Feb 13, 2023

Codecov Report

Base: 87.04% // Head: 87.00% // Decreases project coverage by -0.05% ⚠️

Coverage data is based on head (72b2dbf) compared to base (c79e1e9).
Patch coverage: 64.35% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2732      +/-   ##
==========================================
- Coverage   87.04%   87.00%   -0.05%     
==========================================
  Files         771      771              
  Lines       86167    86626     +459     
==========================================
+ Hits        75004    75367     +363     
- Misses      11163    11259      +96     
Flag Coverage Δ
linux 84.14% <49.09%> (+<0.01%) ⬆️
osx 73.61% <43.23%> (+0.02%) ⬆️
other 84.33% <49.18%> (+<0.01%) ⬆️
win 81.52% <49.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
pyomo/solvers/plugins/__init__.py 100.00% <ø> (ø)
pyomo/solvers/plugins/converter/ampl.py 30.23% <0.00%> (ø)
pyomo/solvers/plugins/converter/pico.py 31.81% <0.00%> (ø)
pyomo/solvers/plugins/solvers/XPRESS.py 70.00% <0.00%> (ø)
pyomo/solvers/wrappers.py 0.00% <ø> (ø)
pyomo/solvers/plugins/solvers/CONOPT.py 45.78% <17.64%> (ø)
pyomo/solvers/plugins/solvers/gurobi_persistent.py 68.71% <26.92%> (ø)
pyomo/solvers/plugins/solvers/cplex_persistent.py 52.72% <33.33%> (ø)
...ers/plugins/solvers/direct_or_persistent_solver.py 88.67% <35.29%> (ø)
pyomo/solvers/plugins/solvers/gurobi_direct.py 73.60% <37.28%> (ø)
... and 58 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.

pyomo/solvers/plugins/solvers/GAMS.py Outdated Show resolved Hide resolved
pyomo/solvers/plugins/solvers/GAMS.py Outdated Show resolved Hide resolved
pyomo/solvers/plugins/solvers/GUROBI.py Outdated Show resolved Hide resolved
pyomo/solvers/plugins/solvers/GUROBI.py Outdated Show resolved Hide resolved
pyomo/solvers/plugins/solvers/GUROBI_RUN.py Outdated Show resolved Hide resolved
pyomo/solvers/plugins/solvers/persistent_solver.py Outdated Show resolved Hide resolved
pyomo/solvers/plugins/solvers/xpress_direct.py Outdated Show resolved Hide resolved
pyomo/solvers/plugins/solvers/xpress_direct.py Outdated Show resolved Hide resolved
pyomo/solvers/plugins/solvers/xpress_direct.py Outdated Show resolved Hide resolved
pyomo/solvers/tests/models/base.py Outdated Show resolved Hide resolved
@mrmundt mrmundt requested a review from blnicho February 14, 2023 14:46
@mrmundt mrmundt merged commit 3d8a9a0 into Pyomo:main Feb 14, 2023
@mrmundt mrmundt deleted the black/pyomo/solvers 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