Skip to content

chore: update pre-commit hooks - #1694

Merged
ariostas merged 4 commits into
mainfrom
pre-commit-ci-update-config
Aug 4, 2026
Merged

chore: update pre-commit hooks#1694
ariostas merged 4 commits into
mainfrom
pre-commit-ci-update-config

Conversation

pre-commit-ci Bot added 2 commits August 3, 2026 20:06
updates:
- [github.com/astral-sh/ruff-pre-commit: c59bba8fb259db0fec2bbb77ad8ba51ea7341b56 → 39d9ac5938dadb73df0564a45f163e25ff9fa6e2](astral-sh/ruff-pre-commit@c59bba8...39d9ac5)
- [github.com/zizmorcore/zizmor-pre-commit: e3eebf65325ccc992422292cb7a4baee967cf815 → 451b56af716f9f0d0c2b816503a3fd0cf8b036fa](zizmorcore/zizmor-pre-commit@e3eebf6...451b56a)
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 42.85714% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.88%. Comparing base (3c515ad) to head (df556a7).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/uproot/_util.py 14.28% 6 Missing ⚠️
src/uproot/containers.py 33.33% 2 Missing and 4 partials ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
src/uproot/_dask.py 78.78% <100.00%> (ø)
src/uproot/interpretation/identify.py 68.94% <100.00%> (+0.12%) ⬆️
src/uproot/source/http.py 71.92% <100.00%> (ø)
src/uproot/writing/_dask_write.py 83.05% <100.00%> (ø)
src/uproot/_util.py 58.10% <14.28%> (ø)
src/uproot/containers.py 67.08% <33.33%> (+0.03%) ⬆️

... and 2 files with indirect coverage changes

ariostas and others added 2 commits August 4, 2026 12:18
Ruff 0.16 greatly expanded its implicit default rule set, which surfaced 84
new errors (BLE001, DTZ, N999, S102, S110, TRY002/TRY004) that are either
intentional in uproot or would require user-visible behavior changes. Pin
`lint.select` to the previous default so the enabled rules stay the ones
listed in `extend-select`, and document the triage inline.

Also revert the PYI019 autofix in `_dask.py`: it introduced a top-level
`from typing_extensions import Self`, but typing_extensions is not a
declared dependency and `typing.Self` does not exist on Python 3.10.

Adopt the four new-default findings that are safe to fix outright, and
enable those rules individually:

- FURB132: use `set.discard` instead of check-and-remove
- FURB163: use `math.log10` instead of `math.log` with a redundant base
- PERF102: don't use `dict.items()` when only the keys are used
- PYI025: alias `collections.abc.Set` as `AbstractSet`

Assisted-by: claude-code:claude-opus-5
@ariostas
ariostas merged commit e598b61 into main Aug 4, 2026
25 of 26 checks passed
@ariostas
ariostas deleted the pre-commit-ci-update-config branch August 4, 2026 17:31
@TaiSakuma TaiSakuma added the type/chore PR title type: chore (set automatically) label Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/chore PR title type: chore (set automatically)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants