From 438c405394e020d4209aaeb83cf600d6ba8dc9db Mon Sep 17 00:00:00 2001 From: melanie witt Date: Thu, 27 Jun 2024 08:04:03 +0000 Subject: [PATCH] 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 --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4d419a2eff..fbe242e060 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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$'