-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
39 lines (35 loc) · 1 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
default_language_version:
python: python3.7
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
- repo: https://github.com/python/black
rev: 19.3b0
hooks:
- id: black
language_version: python
files: '^api/.*'
- repo: https://github.com/asottile/reorder_python_imports
rev: v1.5.0
hooks:
- id: reorder-python-imports
files: '^api/.*'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.710
hooks:
- id: mypy
files: '^api/.*'
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.7
hooks:
- id: flake8
files: '^api/.*'
- repo: https://github.com/awebdeveloper/pre-commit-tslint
rev: 0.0.2
hooks:
- id: tslint
description: Lint and format client files
args: [--fix]
files: '^client/src/*.+(js|jsx|ts|tsx)'