-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
41 lines (37 loc) · 1.09 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: v4.5.0
hooks:
- id: check-added-large-files
- id: check-yaml
args: [--allow-multiple-documents]
exclude: ^helmchart/
- id: check-merge-conflict
- repo: local
hooks:
- id: ruff
name: lint with ruff
language: system
entry: ruff check --force-exclude
types: [python]
exclude: ^.github/pages
require_serial: true
- id: ruff-format
name: format with ruff
language: system
entry: ruff format --force-exclude
exclude: ^.github/pages
types: [python]
require_serial: true
- id: prettier
name: format js/ts(x) with prettier
language: system
entry: npx prettier gui/config-server-gui/ --print-width 100 --write
types: [javascript,jsx,ts,tsx]
require_serial: true
- id: eslint
name: lint with eslint
language: system
entry: npx eslint gui/config-server-gui/src
types: [javascript,jsx,ts,tsx]
require_serial: true