Skip to content

2026 Black formatting update#3820

Merged
blnicho merged 2 commits intoPyomo:mainfrom
mrmundt:black-2026-update
Jan 19, 2026
Merged

2026 Black formatting update#3820
blnicho merged 2 commits intoPyomo:mainfrom
mrmundt:black-2026-update

Conversation

@mrmundt
Copy link
Copy Markdown
Contributor

@mrmundt mrmundt commented Jan 19, 2026

Fixes N/A

Summary/Motivation:

Black releases a major update once a year, and it has happened!

Changes proposed in this PR:

  • Apply new black standards across entire codebase
  • Add appropriate commit to blame 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.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 19, 2026

Codecov Report

❌ Patch coverage is 90.21739% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.44%. Comparing base (d517b4c) to head (7cf6d57).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
pyomo/contrib/parmest/parmest.py 57.14% 3 Missing ⚠️
...o/contrib/piecewise/transform/nested_inner_repn.py 33.33% 2 Missing ⚠️
pyomo/common/gsl.py 0.00% 1 Missing ⚠️
...contrib/preprocessing/plugins/induced_linearity.py 0.00% 1 Missing ⚠️
pyomo/contrib/solver/solvers/sol_reader.py 0.00% 1 Missing ⚠️
pyomo/core/base/indexed_component.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3820      +/-   ##
==========================================
+ Coverage   86.22%   89.44%   +3.21%     
==========================================
  Files         906      906              
  Lines      105445   105445              
==========================================
+ Hits        90921    94313    +3392     
+ Misses      14524    11132    -3392     
Flag Coverage Δ
builders 29.15% <6.52%> (+<0.01%) ⬆️
default 86.06% <81.52%> (?)
expensive 35.76% <18.47%> (?)
linux 86.74% <88.04%> (+0.61%) ⬆️
linux_other 86.74% <88.04%> (?)
osx 82.92% <85.86%> (?)
win 85.01% <85.86%> (?)
win_other 85.01% <85.86%> (?)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@blnicho blnicho merged commit c9ebf1a into Pyomo:main Jan 19, 2026
64 of 65 checks passed
@mrmundt mrmundt deleted the black-2026-update branch March 24, 2026 20:03
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