-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (29 loc) · 1.07 KB
/
.pre-commit-config.yaml
File metadata and controls
32 lines (29 loc) · 1.07 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
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.14.11
hooks:
- id: ruff
# Do not auto-fix in pre-commit; only report issues for manual review
language_version: python3
- repo: https://github.com/psf/black
rev: 26.1.0
hooks:
- id: black
# Run black in check-only mode so it does not modify files automatically
args: ['--check']
language_version: python3
- repo: local
hooks:
- id: prettier
name: prettier
entry: src/frontend/node_modules/.bin/prettier --check
language: system
types_or: [javascript, jsx, ts, tsx, json, css, scss, markdown, html]
exclude: ^(.*/)?(node_modules|dist|coverage)/.*$
- id: eslint
name: eslint
language: system
# Run eslint using the local installation in frontend/node_modules
# This ensures it uses the correct version and plugins
entry: src/frontend/node_modules/.bin/eslint --config src/frontend/eslint.config.cjs
files: ^src/frontend/.*\.(js|jsx|ts|tsx)$