Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mrmundt
Copy link
Contributor

@mrmundt mrmundt commented Jan 26, 2024

Fixes NA

Summary/Motivation:

There are a new Black version release today (24.1.0) that introduces more new formatting. Yay major updates.

Changes proposed in this PR:

  • Apply new black standards
  • Add commit that applied them to the ignore file

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.

"""

from __future__ import division
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is tangential to this PR but I thought we removed all these from __future__ import division statements after we dropped Python 2.7 support.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently not. They are all over the place in contrib, core, gdp, dae, etc.

@codecov
Copy link

codecov bot commented Jan 26, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (6b36613) 88.26% compared to head (aa401ac) 88.27%.

Files Patch % Lines
pyomo/contrib/mindtpy/algorithm_base_class.py 50.00% 2 Missing ⚠️
pyomo/solvers/plugins/solvers/GAMS.py 0.00% 2 Missing ⚠️
pyomo/contrib/community_detection/detection.py 66.66% 1 Missing ⚠️
pyomo/contrib/pynumero/sparse/mpi_block_vector.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3108   +/-   ##
=======================================
  Coverage   88.26%   88.27%           
=======================================
  Files         832      832           
  Lines       92346    92332   -14     
=======================================
- Hits        81513    81505    -8     
+ Misses      10833    10827    -6     
Flag Coverage Δ
linux 86.03% <88.52%> (+0.01%) ⬆️
osx 75.54% <78.33%> (+0.01%) ⬆️
other 86.21% <88.52%> (+0.01%) ⬆️
win 83.43% <86.88%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mrmundt mrmundt merged commit 00748f4 into Pyomo:main Jan 26, 2024
@mrmundt mrmundt deleted the update-black branch March 11, 2024 20:56
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