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:
parent
7dc4b1ea62
commit
438c405394
@ -31,8 +31,8 @@ repos:
|
||||
- id: hacking
|
||||
additional_dependencies: []
|
||||
exclude: '^(doc|releasenotes|tools)/.*$'
|
||||
- repo: https://github.com/pre-commit/mirrors-autopep8
|
||||
rev: v2.0.4
|
||||
- repo: https://github.com/hhatto/autopep8
|
||||
rev: v2.1.0
|
||||
hooks:
|
||||
- id: autopep8
|
||||
files: '^.*\.py$'
|
||||
|
Loading…
Reference in New Issue
Block a user