-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
56 lines (50 loc) · 1.29 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
---
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: flake8
- id: check-case-conflict
- id: check-json
- id: mixed-line-ending
- id: check-merge-conflict
- repo: https://github.com/prettier/prettier
rev: 1.18.2
hooks:
- id: prettier
exclude: .*\.html
- repo: https://github.com/PyCQA/isort
rev: 5.4.2 # Use the revision sha / tag you want to point at
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 19.10b0
hooks:
- id: black
language_version: python3.7
- repo: local
hooks:
- id: pytest-pipenv
name: pytest-pipenv
entry: pipenv run pytest tests
language: system
pass_filenames: false
- id: mypy-pipenv
name: mypy-pipenv
entry: scripts/pipenv_runner.py mypy
language: system
types: [python]
args:
- --show-traceback
- --ignore-missing-imports
- --check-untyped-defs
- id: pylint-pipenv
name: pylint-pipenv
entry: scripts/precommit_pylint.py
language: system
types: [python]
args:
- --rcfile=.pylintrc