-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
41 lines (41 loc) · 1.13 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
args: ['--maxkb=1024']
- id: check-json
exclude: |
(?x)^(
caster-editor/tsconfig.json|
.vscode/settings.json|
.vscode/extensions.json
)$
- id: check-merge-conflict
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/autoflake
rev: v1.5.3
hooks:
- id: autoflake
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: local
hooks:
- id: editor-lint
name: "Linting editor"
files: caster-editor
language: system
entry: /bin/sh -c "cd caster-editor && npm run format && npm run lint:fix"
- id: frontend-lint
name: "Linting frontend"
files: caster-front
language: system
entry: /bin/sh -c "cd caster-front && npm run format && npm run lint:fix"