-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
32 lines (32 loc) · 1.02 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
31
32
# 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: v4.3.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-added-large-files
args: ['--maxkb=1024']
- id: detect-private-key
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/python/black
rev: 22.3.0
hooks:
- id: black
description: python code formatter
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
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.11.2
hooks:
- id: doc8
description: linting for rst files
entry: doc8 --ignore-path docs/_build/ -e rst docs/
require_serial: true