Skip to content

Commit 65ba7e6

Browse files
committed
🧪🎨 Integrate autopep8 into pre-commit config
This is preferred over black since we care about non-intrusive formatting suggestions and inclusivity. Ref: #635 (comment)
1 parent f8a1cc4 commit 65ba7e6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.pep8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pep8]
2+
aggressive = 3
3+
in-place = true

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ repos:
2828
files: >-
2929
^.*\.rst$
3030
31+
- repo: https://github.com/hhatto/autopep8.git
32+
rev: >- # v2.0.2 does not yet have config, maybe v2.0.3 will, SHA for now
33+
5b9110ba53fecd60cd3091fb66d808e8ced3b2e8
34+
hooks:
35+
- id: autopep8
36+
3137
- repo: https://github.com/pre-commit/pre-commit-hooks.git
3238
rev: v4.4.0
3339
hooks:

0 commit comments

Comments
 (0)