-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
30 lines (30 loc) · 1.04 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
minimum_pre_commit_version: 1.15.2
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-merge-conflict # Check for files that contain merge conflict strings.
language_version: python3
- id: trailing-whitespace # Trims trailing whitespace.
args: [--markdown-linebreak-ext=md]
language_version: python3
- id: mixed-line-ending # Replaces or checks mixed line ending.
args: [--fix=lf]
language_version: python3
exclude: >
(?x)^(
docs/make.bat
)$
- id: end-of-file-fixer # Makes sure files end in a newline and only a newline.
exclude: tests/fake_.*\.key
language_version: python3
- id: check-ast # Simply check whether files parse as valid python.
language_version: python3
- id: check-yaml
- id: check-json
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
language_version: python3