-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
26 lines (26 loc) · 977 Bytes
/
.pre-commit-config.yaml
File metadata and controls
26 lines (26 loc) · 977 Bytes
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
---
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
- 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: stable
hooks:
- id: black
language_version: python3