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/neos directory py files #2738

Merged
merged 1 commit into from
Feb 14, 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/neos && black -S -C .

Changes proposed in this PR:

  • Apply black to the pyomo/neos 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 14, 2023

Codecov Report

Base: 87.05% // Head: 86.98% // Decreases project coverage by -0.07% ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2738      +/-   ##
==========================================
- Coverage   87.05%   86.98%   -0.07%     
==========================================
  Files         771      771              
  Lines       86306    86306              
==========================================
- Hits        75134    75076      -58     
- Misses      11172    11230      +58     
Flag Coverage Δ
linux 84.15% <62.74%> (-0.01%) ⬇️
osx 73.63% <62.74%> (ø)
other 84.34% <62.74%> (ø)
win 81.52% <62.74%> (ø)

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

Impacted Files Coverage Δ
pyomo/neos/__init__.py 100.00% <ø> (ø)
pyomo/neos/plugins/__init__.py 100.00% <ø> (ø)
pyomo/neos/kestrel.py 74.05% <58.82%> (ø)
pyomo/neos/plugins/kestrel_plugin.py 78.94% <64.28%> (ø)
pyomo/neos/plugins/NEOS.py 81.25% <100.00%> (ø)
pyomo/util/subsystems.py 89.13% <0.00%> (-8.70%) ⬇️
...ontrib/appsi/utils/collect_vars_and_named_exprs.py 93.75% <0.00%> (-6.25%) ⬇️
pyomo/core/base/external.py 95.43% <0.00%> (-3.16%) ⬇️
pyomo/contrib/appsi/writers/nl_writer.py 84.39% <0.00%> (-2.32%) ⬇️
pyomo/repn/plugins/ampl/ampl_.py 81.40% <0.00%> (-1.86%) ⬇️
... and 6 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 6ef8840 into Pyomo:main Feb 14, 2023
@mrmundt mrmundt deleted the black/pyomo/neos branch July 25, 2023 17:36
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