-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (51 loc) · 1.42 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (51 loc) · 1.42 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.4
hooks:
- id: ruff-format
name: Ruff Format
- id: ruff-check
name: Ruff Check
args:
- --fix
- --select
- I
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
name: MyPy
entry: bash -c 'cd backend && uv run mypy .'
language: system
types: [python]
files: ^backend/
pass_filenames: false
- repo: https://github.com/PyCQA/bandit
rev: 1.8.6
hooks:
- id: bandit
name: bandit
entry: bash -c 'cd backend && uv run bandit -c pyproject.toml -r . -ll'
language: system
types: [python]
files: ^backend/
pass_filenames: false
- repo: local
hooks:
- id: eslint
name: ESLint
entry: bash -c 'cd frontend && npm run lint -- --fix'
language: system
files: ^frontend/.*\.(js|jsx|ts|tsx)$
pass_filenames: false
- id: prettier
name: Prettier
entry: bash -c 'cd frontend && npx prettier -cw .'
language: system
files: ^frontend/.*\.(js|jsx|ts|tsx|json|css|md)$
- id: typescript-check
name: TypeScript Check
entry: bash -c 'cd frontend && npx tsc --noEmit'
language: system
files: ^frontend/.*\.(ts|tsx)$
pass_filenames: false