-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
77 lines (67 loc) · 2.22 KB
/
.pre-commit-config.yaml
File metadata and controls
77 lines (67 loc) · 2.22 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- repo: local
hooks:
- id: trufflehog
name: TruffleHog
description: Detect secrets in your data.
entry: bash -c 'trufflehog git file://. --branch HEAD'
language: system
stages: ["pre-commit", "pre-push"]
- id: sdk
name : format sdk
language: system
entry: make -C sdk format
files: ^sdk/
pass_filenames: false
- id: rhesis-package
name: format rhesis package
language: system
entry: bash -c "uvx ruff format packages/rhesis && uvx ruff check --fix packages/rhesis"
files: ^packages/rhesis/
pass_filenames: false
- id: backend
name : format backend
language: system
entry: make -C apps/backend format_diff
files: ^apps/backend/
pass_filenames: false
- id: frontend-format
name: auto-fix frontend formatting
language: system
entry: bash -c "cd apps/frontend && npm run format"
files: ^apps/frontend/
pass_filenames: false
- id: frontend-lint
name: lint frontend
language: system
entry: bash -c "cd apps/frontend && npm run lint"
files: ^apps/frontend/
pass_filenames: false
- id: docs-format
name: auto-fix docs formatting
language: system
entry: bash -c "cd apps/documentation && npm run format"
files: ^apps/documentation/
pass_filenames: false
- id: hardcoded-styles
name: check hardcoded styles in frontend and docs
language: system
entry: node scripts/check-hardcoded-styles.js
files: ^apps/(frontend|documentation)/
pass_filenames: false
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.8.0
# hooks:
# - id: mypy
# additional_dependencies: [
# "types-requests",
# "pandas-stubs",
# "pyarrow-stubs",
# "types-tqdm"
# ]