-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
28 lines (28 loc) · 932 Bytes
/
.pre-commit-config.yaml
File metadata and controls
28 lines (28 loc) · 932 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
27
28
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
description: Ensures file ends in a newline
- id: trailing-whitespace
description: Trims extra whitespaces at end of line, except if file is markdown
args: [--markdown-linebreak-ext=md]
- id: check-ast
description: Checks if valid Python
- id: detect-private-key
description: Checks for private keys
- id: check-added-large-files
description: Looks at file size, max set to 250kb
args: [--maxkb=250]
- id: detect-aws-credentials
description: check for aws credentials
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.7
description: PEP8 Syntax Checker
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8