forked from HumanSignal/label-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.06 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
default_stages: [ pre-push ]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.285
hooks:
- id: ruff
args: [ --no-fix, --show-fixes, --show-source ]
- repo: https://github.com/grantjenks/blue
rev: v0.9.1
hooks:
- id: blue
args: [ --check, --diff, --color ]
- repo: https://github.com/biomejs/pre-commit
rev: "v0.1.0"
hooks:
- id: biome-check
args: [ --config-path, ./web ]
additional_dependencies: [ "@biomejs/[email protected]" ]
files: ^web/.*
- repo: local
hooks:
- id: stylelint
name: stylelint
entry: bash -c 'cd web && npx stylelint **/*.scss --fix'
language: node
types: [ scss ]
files: ^.*\.scss$
- repo: local
hooks:
- id: unstage-frontend-static
name: Unstage Frontend Static Before Commit
entry: git reset HEAD -- 'web/dist/*'
language: system
pass_filenames: false
files: ^web/dist/.*
verbose: true
stages:
- pre-commit
- manual