-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
108 lines (98 loc) · 2.74 KB
/
.pre-commit-config.yaml
File metadata and controls
108 lines (98 loc) · 2.74 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
exclude: "node_modules|.git"
default_stages: [pre-commit]
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
files: "meet.*"
exclude: ".*json$|.*txt$|.*csv|.*md|.*svg"
- id: check-merge-conflict
- id: check-ast
- id: check-json
- id: check-toml
- id: check-yaml
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.3
hooks:
- id: ruff
name: "Run ruff import sorter"
args: ["--select=I", "--fix"]
- id: ruff
args: ["--fix"]
name: "Run ruff linter"
- id: ruff-format
name: "Run ruff formatter"
- repo: https://github.com/biomejs/pre-commit
rev: v2.4.12
hooks:
- id: biome-check
name: Biome Check (Frontend)
entry: bash -lc 'cd frontend && node_modules/.bin/biome check --write --config-path biome.json "${@/#frontend\//}"' --
language: system
files: "frontend/.*\\.(js|ts|vue|json|jsx|tsx)$"
# Ignore any files that might contain jinja / bundles
exclude: |
(?x)^(
frontend/components.d.ts|
meet/public/dist/.*|
cypress/.*|
.*node_modules.*|
.*boilerplate.*|
meet/templates/includes/.*|
meet/public/js/lib/.*
)$
- id: biome-check
name: Biome Check (SFU Server)
entry: bash -lc 'cd sfu-server && node_modules/.bin/biome check --write --config-path biome.json "${@/#sfu-server\//}"' --
language: system
files: "sfu-server/.*\\.(js|ts|json)$"
exclude: |
(?x)^(
.*node_modules.*|
sfu-server/dist/.*
)$
- repo: local
hooks:
- id: knip-e2e
name: Knip (E2E)
entry: yarn knip:e2e
language: system
pass_filenames: false
files: |
(?x)^(
e2e/.*|
knip\.json|
package\.json|
yarn\.lock
)$
- id: knip-frontend
name: Knip (Frontend)
entry: yarn knip:frontend
language: system
pass_filenames: false
files: |
(?x)^(
frontend/.*|
knip\.json|
package\.json|
yarn\.lock
)$
- id: knip-sfu-server
name: Knip (SFU Server)
entry: yarn knip:sfu-server
language: system
pass_filenames: false
files: |
(?x)^(
sfu-server/.*|
knip\.json|
package\.json|
yarn\.lock
)$
ci:
autoupdate_schedule: weekly
skip: []
submodules: false