pre-commit: Bump autopep8 version and update repo

Attempts to run autopep8 via pre-commit fail for Python 3.12 with
error: "ModuleNotFoundError: No module named 'lib2to3'".

The issue was fixed in v2.1.0:

https://github.com/hhatto/autopep8/issues/581

but v2.1.0 is not available at
https://github.com/pre-commit/mirrors-autopep8 as the mirror has been
deprecated.

The README instructs to use https://github.com/hhatto/autopep8 directly
instead.

Change-Id: Ifdac3dad368298720682ab256e9dbf0f2624884e
This commit is contained in:
melanie witt 2024-06-27 08:04:03 +00:00
parent 7dc4b1ea62
commit 438c405394

View File

@ -31,8 +31,8 @@ repos:
- id: hacking - id: hacking
additional_dependencies: [] additional_dependencies: []
exclude: '^(doc|releasenotes|tools)/.*$' exclude: '^(doc|releasenotes|tools)/.*$'
- repo: https://github.com/pre-commit/mirrors-autopep8 - repo: https://github.com/hhatto/autopep8
rev: v2.0.4 rev: v2.1.0
hooks: hooks:
- id: autopep8 - id: autopep8
files: '^.*\.py$' files: '^.*\.py$'