From 65ba7e695606a82b100db374ed5a5b1980fb758e Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Fri, 30 Jun 2023 05:06:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=F0=9F=8E=A8=20Integrate=20autopep8?= =?UTF-8?q?=20into=20pre-commit=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is preferred over black since we care about non-intrusive formatting suggestions and inclusivity. Ref: https://github.com/cherrypy/cheroot/pull/635#issuecomment-1556064005 --- .pep8 | 3 +++ .pre-commit-config.yaml | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 .pep8 diff --git a/.pep8 b/.pep8 new file mode 100644 index 0000000000..3995969e42 --- /dev/null +++ b/.pep8 @@ -0,0 +1,3 @@ +[pep8] +aggressive = 3 +in-place = true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 246a197bd2..33f03c1caf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,6 +28,12 @@ repos: files: >- ^.*\.rst$ +- repo: https://github.com/hhatto/autopep8.git + rev: >- # v2.0.2 does not yet have config, maybe v2.0.3 will, SHA for now + 5b9110ba53fecd60cd3091fb66d808e8ced3b2e8 + hooks: + - id: autopep8 + - repo: https://github.com/pre-commit/pre-commit-hooks.git rev: v4.4.0 hooks: