-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
46 lines (41 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
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/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.7
- repo: https://github.com/adrienverge/yamllint
rev: v1.11.1
hooks:
- id: yamllint
# this pylint wrapper lets us set a required score
- repo: [email protected]:coldnight/pre-commit-pylint.git
rev: v0.0.3
hooks:
- id: pylint-score-limit
args:
- --limit=8.5
- --rcfile=./.pylintrc
- repo: local
hooks:
- id: mypy-env
name: mypy-env
entry: ./env_runner.py mypy
language: system
types: [python]
args:
- --show-traceback
- --ignore-missing-imports
- --check-untyped-defs