Skip to content

Commit 1754771

Browse files
author
Daniel Gallagher
committed
Add pyupgrade and black formatter pre-commit hooks, remove autopep8 as obviated by black.
1 parent 91fb8c2 commit 1754771

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1+
repos:
12
- repo: git://github.com/pre-commit/pre-commit-hooks
2-
sha: v0.8.0
3+
rev: v1.3.0
34
hooks:
4-
- id: autopep8-wrapper
5-
args:
6-
- -i
7-
- --ignore=E128,E309,E501
8-
exclude: ^docs/.*$
95
- id: check-json
106
- id: check-yaml
117
- id: debug-statements
128
- id: end-of-file-fixer
139
exclude: ^docs/.*$
1410
- id: trailing-whitespace
11+
exclude: README.md
1512
- id: pretty-format-json
1613
args:
1714
- --autofix
18-
- --indent=4
15+
- repo: https://github.com/asottile/pyupgrade
16+
rev: v1.2.0
17+
hooks:
18+
- id: pyupgrade
19+
- repo: https://github.com/ambv/black
20+
rev: stable
21+
hooks:
22+
- id: black
23+
language_version: python3.6

0 commit comments

Comments
 (0)