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/scripting directory py files #2733

Merged
merged 3 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/scripting && black -S -C .

Changes proposed in this PR:

  • Apply black to the pyomo/scripting 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 13, 2023 15:25
@codecov
Copy link

codecov bot commented Feb 13, 2023

Codecov Report

Base: 87.05% // Head: 86.99% // Decreases project coverage by -0.06% ⚠️

Coverage data is based on head (187d7e3) compared to base (e49b973).
Patch coverage: 64.80% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2733      +/-   ##
==========================================
- Coverage   87.05%   86.99%   -0.06%     
==========================================
  Files         771      771              
  Lines       86301    86301              
==========================================
- Hits        75131    75080      -51     
- Misses      11170    11221      +51     
Flag Coverage Δ
linux 84.16% <64.47%> (+<0.01%) ⬆️
osx 73.63% <64.47%> (ø)
other 84.34% <64.47%> (ø)
win 81.53% <62.50%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
pyomo/scripting/commands.py 0.00% <0.00%> (ø)
pyomo/scripting/plugins/__init__.py 100.00% <ø> (ø)
pyomo/scripting/plugins/build_ext.py 71.73% <0.00%> (ø)
pyomo/scripting/plugins/extras.py 14.51% <0.00%> (ø)
pyomo/scripting/pyomo_main.py 65.21% <0.00%> (ø)
pyomo/scripting/convert.py 28.24% <33.33%> (ø)
pyomo/scripting/plugins/download.py 70.00% <33.33%> (ø)
pyomo/scripting/util.py 59.01% <54.36%> (ø)
pyomo/scripting/driver_help.py 60.33% <57.62%> (ø)
pyomo/scripting/plugins/convert.py 55.55% <65.00%> (ø)
... and 16 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/scripting/plugins/extras.py Outdated Show resolved Hide resolved
pyomo/scripting/plugins/solve.py Outdated Show resolved Hide resolved
@mrmundt mrmundt merged commit 2895da9 into Pyomo:main Feb 14, 2023
@mrmundt mrmundt deleted the black/pyomo/scripting 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