-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
35 lines (34 loc) · 1.15 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: grammar.patch
- repo: https://github.com/psf/black
rev: 21.10b0 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
args: # arguments to configure black
- --line-length=119
language_version: python3 # Should be a command that runs python3.6+
exclude: src/parser/generated_parser.py
# flake8
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.4.1 # Use the sha or tag you want to point at
hooks:
- id: prettier
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
hooks:
- id: insert-license
files: "^(src|scripts)/.*ts$"
args:
- --detect-license-in-X-top-lines=2
- --comment-style
- // # defaults to: #