-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.lefthook.yaml
48 lines (48 loc) · 1.47 KB
/
.lefthook.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
42
43
44
45
46
47
48
pre-commit:
parallel: true
commands:
application-lint:
root: "application/"
run: "flake8 ."
application-autoformat:
root: "application/"
run: "black --check ."
application-isort:
root: "application/"
run: "isort ."
application-bandit:
root: "application/"
run: "bandit -r -x __pycache__,./venv,./tests -c pyproject.toml ."
application-js-format:
root: "application/static/"
run: "biome format ."
application-sass:
root: "application/static/styles/"
run: "sass . && cd .. && biome format styles/ --write |&> /dev/null"
celery-lint:
root: "celery/"
run: "flake8 ."
celery-autoformat:
root: "celery/"
run: "black --check ."
celery-isort:
root: "celery/"
run: "isort ."
commons-lint:
root: "commons/"
run: "flake8 ."
commons-autoformat:
root: "commons/"
run: "black --check ."
commons-isort:
root: "commons/"
run: "isort ."
sse-proxy-format:
root: "sse-proxy/"
run: "clang-format include/**/*.h src/**/*.cpp"
worker-format:
root: "worker/"
run: "mix format"
userscript-format:
root: "userscripts/"
run: "biome format ."