Skip to content

chore: bump pre-commit hook versions#881

Open
sevmag wants to merge 2 commits into
graphnet-team:mainfrom
sevmag:chore/precommit-autoupdate
Open

chore: bump pre-commit hook versions#881
sevmag wants to merge 2 commits into
graphnet-team:mainfrom
sevmag:chore/precommit-autoupdate

Conversation

@sevmag
Copy link
Copy Markdown
Collaborator

@sevmag sevmag commented May 3, 2026

NOTE:

The large amount of changed files is only a relic from running the new linting on the whole repo the only real change is in .pre-commit-config.yaml

Summary

Updates pinned versions in .pre-commit-config.yaml to current upstream tags. The previous pins were ~1 year old and the older flake8 7.1.1 / black 24.10.0 releases trigger a deprecated bdist_wheel.universal codepath that fails to install cleanly on certain pip + setuptools combinations (we saw [Errno 17] File exists: 'build/bdist.linux-x86_64/wheel/<pkg>.dist-info' during fresh hook env installs). Newer releases ship prebuilt wheels and avoid the legacy install path.

Changes:

  • black 24.10.0 → 26.3.1
  • flake8 7.1.1 → 7.3.0
  • mypy v1.13.0 → v1.20.2
  • pre-commit-hooks v4.6.0 → v6.0.0
  • docformatter intentionally not bumped — v1.7.8 has a NameError: tomllib is not defined regression on Python 3.10 (uses 3.11+ stdlib unconditionally), so v1.7.7 is kept.

Test plan

  • pre-commit run --all-files (or on changed files) passes locally with the new pins
  • CI lint job passes
  • No new lint findings introduced by the bumped versions on existing code

@sevmag sevmag force-pushed the chore/precommit-autoupdate branch from 730b07b to 74d05fb Compare May 3, 2026 18:35
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.

1 participant