Skip to content

Commit b8cdc88

Browse files
author
Jeremy Lavergne
committed
add pre-commit
1 parent 3c62b54 commit b8cdc88

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.pre-commit-config.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
# https://pre-commit.com
3+
default_language_version: {python: python3}
4+
minimum_pre_commit_version: "1.15"
5+
6+
# if adding/removing a repo, be sure to run `docker/pre_commit/update.py`
7+
# to keep the docker test image up to date.
8+
9+
repos:
10+
- repo: https://github.com/asottile/pyupgrade
11+
rev: v1.26.2
12+
hooks:
13+
- id: pyupgrade
14+
args: ["--py36-plus"]
15+
16+
- repo: https://github.com/psf/black
17+
rev: 19.10b0
18+
hooks:
19+
- id: black
20+
# checks for pre-commit config
21+
- repo: meta
22+
hooks:
23+
- id: check-hooks-apply
24+
- id: check-useless-excludes
25+
- repo: https://github.com/pre-commit/pre-commit-hooks
26+
rev: v2.4.0
27+
hooks:
28+
- id: check-added-large-files
29+
args: ["--maxkb=1024"]
30+
- id: check-merge-conflict
31+
- id: check-yaml
32+
args: ["--unsafe"]
33+
- id: debug-statements
34+
- id: detect-private-key
35+
- id: forbid-new-submodules
36+
- id: trailing-whitespace

0 commit comments

Comments
 (0)