Skip to content

Commit

Permalink
馃И馃帹 Integrate autopep8 into pre-commit config
Browse files Browse the repository at this point in the history
This is preferred over black since we care about non-intrusive
formatting suggestions and inclusivity.

Ref: #635 (comment)
  • Loading branch information
webknjaz committed Jun 30, 2023
1 parent f8a1cc4 commit 65ba7e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .pep8
@@ -0,0 +1,3 @@
[pep8]
aggressive = 3
in-place = true
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -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:
Expand Down

0 comments on commit 65ba7e6

Please sign in to comment.