-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
42 lines (42 loc) · 1.21 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
fail_fast: True
stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
stages: [commit, manual]
- id: end-of-file-fixer
stages: [commit, manual]
- id: check-yaml
stages: [commit, manual]
- id: check-added-large-files
stages: [commit, manual]
- id: check-docstring-first
stages: [commit, manual]
# you can enable the following checks if you disable them from drone
# as drone has credentials in place
# - id: detect-aws-credentials
# - id: detect-private-key
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.6.4
hooks:
- id: isort
stages: [commit]
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
language_version: python3.7
stages: [commit]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790
hooks:
- id: mypy
args: [--config-file, mypy.ini]
stages: [commit, manual]
# - repo: https://gitlab.com/pycqa/flake8
# rev: 3.7.9
# hooks:
# - id: flake8
# stages: [commit, manual]