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/checker directory py files #2731

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

mrmundt
Copy link
Contributor

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

Changes proposed in this PR:

  • Apply black to the pyomo/checker 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 10, 2023 15:35
@codecov
Copy link

codecov bot commented Feb 10, 2023

Codecov Report

Base: 87.03% // Head: 87.06% // Increases project coverage by +0.03% 🎉

Coverage data is based on head (3acc0f4) compared to base (8fe21bb).
Patch coverage: 50.87% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2731      +/-   ##
==========================================
+ Coverage   87.03%   87.06%   +0.03%     
==========================================
  Files         771      771              
  Lines       86162    87570    +1408     
==========================================
+ Hits        74993    76246    +1253     
- Misses      11169    11324     +155     
Flag Coverage Δ
linux 84.14% <61.70%> (-0.01%) ⬇️
osx 73.59% <61.70%> (+<0.01%) ⬆️
other 84.32% <61.70%> (+<0.01%) ⬆️
win 81.51% <55.31%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
pyomo/checker/plugins/__init__.py 100.00% <ø> (ø)
pyomo/checker/plugins/function.py 81.48% <0.00%> (ø)
pyomo/checker/plugins/checkers/model/assignment.py 54.28% <25.00%> (ø)
pyomo/checker/plugins/checkers/model/rule.py 45.45% <26.31%> (ø)
...yomo/checker/plugins/checkers/model/conditional.py 32.72% <42.85%> (ø)
pyomo/checker/plugins/checker.py 61.79% <50.00%> (ø)
pyomo/checker/plugins/checkers/model/model.py 78.00% <50.00%> (ø)
pyomo/checker/plugins/checkers/py3k/printing.py 85.71% <50.00%> (ø)
pyomo/checker/plugins/checkers/sample/printing.py 62.50% <50.00%> (ø)
pyomo/checker/checker.py 100.00% <100.00%> (ø)
... and 103 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/checker/doc/recompile.py Outdated Show resolved Hide resolved
@mrmundt mrmundt force-pushed the black/pyomo/checker branch from 5a0d396 to 3acc0f4 Compare February 13, 2023 14:22
@mrmundt mrmundt requested a review from blnicho February 13, 2023 14:23
@mrmundt mrmundt merged commit 733289d into Pyomo:main Feb 13, 2023
@mrmundt mrmundt deleted the black/pyomo/checker 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