Skip to content

[pre-commit.ci] autoupdate - #5354

Closed
pre-commit-ci[bot] wants to merge 4 commits into
masterfrom
pre-commit-ci-update-config
Closed

pre-commit-ci[bot] wants to merge 4 commits into
masterfrom
pre-commit-ci-update-config

Conversation

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.20 → v0.16.10](astral-sh/ruff-pre-commit@v0.15.20...v0.16.10)
- [github.com/psf/black-pre-commit-mirror: 24.10.0 → 26.10.0](psf/black-pre-commit-mirror@24.10.0...26.10.0)
- [github.com/PyCQA/flake8: 7.3.0 → 7.4.1](PyCQA/flake8@7.3.0...7.4.1)
- [github.com/pre-commit/mirrors-mypy: v1.16.1 → v2.4.0](pre-commit/mirrors-mypy@v1.16.1...v2.4.0)
- [github.com/rstcheck/rstcheck: v6.2.5 → v6.3.0](rstcheck/rstcheck@v6.2.5...v6.3.0)
- [github.com/codespell-project/codespell: v2.4.2 → v2.4.3](codespell-project/codespell@v2.4.2...v2.4.3)
@codecov

codecov Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.36264% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.54%. Comparing base (372c710) to head (37849fb).

Files with missing lines Patch % Lines
Bio/Cluster/__init__.py 0.00% 3 Missing ⚠️
Bio/Nexus/Nexus.py 40.00% 3 Missing ⚠️
Bio/Graphics/Distribution.py 0.00% 2 Missing ⚠️
Bio/NMR/xpktools.py 0.00% 2 Missing ⚠️
Bio/SCOP/__init__.py 0.00% 2 Missing ⚠️
Bio/Seq.py 60.00% 2 Missing ⚠️
Bio/UniProt/__init__.py 0.00% 2 Missing ⚠️
Bio/Align/sam.py 0.00% 1 Missing ⚠️
Bio/AlignIO/MsfIO.py 0.00% 1 Missing ⚠️
Bio/Blast/__init__.py 50.00% 1 Missing ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5354      +/-   ##
==========================================
+ Coverage   85.50%   85.54%   +0.03%     
==========================================
  Files         282      282              
  Lines       59625    59422     -203     
==========================================
- Hits        50982    50830     -152     
+ Misses       8643     8592      -51     

☔ View full report in Codecov by Harness.
📢 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.

@peterjc

peterjc commented Oct 6, 2026

Copy link
Copy Markdown
Member

Looks like a GitHub issue overnight, all the GitHub Actions showed as cancelled and pre-commit.ci had not run.

Fixed a few lost comments and NOQA markers for flake8 rescued,
and old black used afterwards. I dropped a few dictionary
changes pending double checking backward compatibility.

Note string method .removeprefix was new in Python 3.9.

Still need to review the ruff-check fixes of the Tests etc.
@peterjc

peterjc commented Oct 6, 2026

Copy link
Copy Markdown
Member

No NOT merge yet, the pre-commit tests fail.

@peterjc
peterjc marked this pull request as draft October 6, 2026 09:30
@peterjc

peterjc commented Oct 6, 2026

Copy link
Copy Markdown
Member

The automated style changes are mostly sorting imports, slots, etc - and merging some if/else chains with the same actions. I've eyeballed all of them (and rejected a few more pending further testing/reading). A couple of tests are failing...

Note that recent versions of ruff check seem to remove NOQA comments that it wouldn't complain about. That's annoying given we still run flake8 in parallel and it does complain. It may be pragmatic to adopt the ruff convention and disable those flake8 tests?

i.e. Still some work to have this working with the latest ruff (and black, and mypy, with different issues to wrestle with there).

@peterjc
peterjc marked this pull request as ready for review October 6, 2026 10:13
@peterjc

peterjc commented Oct 6, 2026

Copy link
Copy Markdown
Member

Seeing a couple of online test failures locally (test_PDB_PDBList.py and test_TogoWS.py), don't seem to be related.

and value.shape[1] == 1
or value.shape[0] == 1
and value.shape[1] == length
):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think this is an improvement in readablility.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I too wasn't entirely convinced about some of these - but it is less code duplication.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is from what ruff calls SIM114 (if-with-same-arms), which we could disable:

https://docs.astral.sh/ruff/rules/if-with-same-arms/

@mdehoon mdehoon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's too big to review. Can we reject this?

@peterjc

peterjc commented Oct 7, 2026

Copy link
Copy Markdown
Member

I can split it up, sure. It is already only some of the automated changes ruff would make (none of the test files).

@mdehoon

mdehoon commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

I can split it up, sure.

Yes that would help. Or disable some of the ruff rules, if they do more harm than good.

@peterjc

peterjc commented Oct 8, 2026

Copy link
Copy Markdown
Member

Closing in favour of doing this more incrementally (and adding to the ruff ignore list as needed).

@peterjc peterjc mentioned this pull request Oct 21, 2026
3 tasks done
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