forked from rocketride-org/rocketride-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
21 lines (21 loc) · 801 Bytes
/
lefthook.yml
File metadata and controls
21 lines (21 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
colors: false # disabled to fix terminal corruption on Windows
pre-commit:
parallel: false # sequential to avoid ruff cache write conflicts
commands:
gitleaks:
tags: security
run: gitleaks protect --verbose --redact --staged --config .gitleaks.toml
# Note: ESLint and Prettier are temporarily disabled in lefthook in order
# to enable them later in both lefthook and CI workflow.
# eslint:
# glob: '*.{js,ts,jsx,tsx,mjs,cjs}'
# run: npx eslint {staged_files}
# prettier:
# glob: '*.{js,ts,jsx,tsx,mjs,cjs,json,css,scss,html,md,yaml,yml}'
# run: npx prettier --check {staged_files}
ruff-check:
glob: '*.py'
run: ruff check {staged_files}
ruff-format:
glob: '*.py'
run: ruff format --check {staged_files}