-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
58 lines (57 loc) · 1.57 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: trailing-whitespace
- id: check-toml
- id: pretty-format-json
args:
- --autofix
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.21.0
hooks:
- id: yamllint
args:
- --format
- parsable
- --strict
- '-d {extends: relaxed, rules: {line-length: {max: 150}}}'
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.0.11
hooks:
- id: yamlfmt
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
files: (src|tests).*py
- repo: https://github.com/PyCQA/isort
rev: 5.6.4
hooks:
- id: isort
args: [-m, '3', --tc]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
hooks:
- id: prettier
types:
- ts
- repo: local
hooks:
- id: pyright
name: pyright
entry: bash -c 'cd python-cli && poetry run pyright'
language: node
pass_filenames: false
types: [python]
additional_dependencies: [[email protected]]
- repo: local
hooks:
- id: tsc-lint
name: tsc-lint
entry: bash -c 'yarn compile && yarn lint --fix'
language: node
pass_filenames: false
types:
- ts