-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
61 lines (60 loc) · 1.67 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3.8
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-docstring-first
- id: check-added-large-files
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: mixed-line-ending
- id: detect-private-key
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.0.7
hooks:
- id: isort
additional_dependencies: ["toml"]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.5.1
hooks:
- id: python-use-type-annotations
- id: python-check-blanket-noqa
- id: python-no-eval
- id: rst-backticks
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.16
hooks:
- id: shellcheck
- repo: https://github.com/adrienverge/yamllint
rev: v1.23.0
hooks:
- id: yamllint
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
exclude: setup.py
- repo: https://github.com/haizaar/check-pipfile-lock
rev: v0.0.4
hooks:
- id: check-pipfile-lock
exclude: test
# For local development
- repo: local
hooks:
- id: check-pipfile-lock-dev
name: "Check pipenv's Pipfile.lock to be consistent with Pipfile"
language: python
exclude: test
entry: check-pipfile-lock
files: "(^|/){0,1}Pipfile(.lock){0,1}$"