-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
31 lines (31 loc) · 1005 Bytes
/
.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
31
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-yaml
- id: check-json
- id: check-added-large-files
- id: detect-private-key
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/python/black
rev: 20.8b1
hooks:
- id: black
description: python code formatter
- repo: https://github.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
description: enforcing style consistency across Python projects
entry: flake8 --max-line-length 128 --max-doc-length 256 --ignore E501
- repo: https://github.com/pycqa/doc8
rev: 0.9.0a1
hooks:
- id: doc8
description: linting for rst files
entry: doc8 --ignore-path docs/_build/ -e rst --ignore D001 docs/
require_serial: true