Repository navigation
[pre-commit.ci] autoupdate - #5354
pre-commit-ci[bot] wants to merge 4 commits into
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 Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
|
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.
|
No NOT merge yet, the pre-commit tests fail. |
|
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). |
|
Seeing a couple of online test failures locally ( |
| and value.shape[1] == 1 | ||
| or value.shape[0] == 1 | ||
| and value.shape[1] == length | ||
| ): |
There was a problem hiding this comment.
I don't think this is an improvement in readablility.
There was a problem hiding this comment.
I too wasn't entirely convinced about some of these - but it is less code duplication.
There was a problem hiding this comment.
This is from what ruff calls SIM114 (if-with-same-arms), which we could disable:
mdehoon
left a comment
There was a problem hiding this comment.
It's too big to review. Can we reject this?
|
I can split it up, sure. It is already only some of the automated changes ruff would make (none of the test files). |
Yes that would help. Or disable some of the ruff rules, if they do more harm than good. |
|
Closing in favour of doing this more incrementally (and adding to the ruff ignore list as needed). |
updates: