-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.pre-commit-config.yaml
47 lines (47 loc) · 1.33 KB
/
.pre-commit-config.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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: ""
hooks:
- id: prettier
args: ['--write']
files: '\.jsx?$'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.4
hooks:
- id: gitleaks
- repo: https://github.com/semgrep/semgrep
rev: 'v1.100.0'
hooks:
- id: semgrep
name: Semgrep High Severity Scan
args: ['--config', 'p/default', '--error', '--severity', 'ERROR']
- repo: local
hooks:
- id: check-header-py
name: Check for license header in Python files
entry: .precommit/check_header.sh
language: system
files: '\.(py)$'
exclude: '^$'
- id: check-header-js
name: Check for license header in JS files
entry: .precommit/check_header.sh
language: system
files: '\.(js)$'
exclude: '^$'
- id: check-cli-readme
name: Check if the CLI Readme needs an update
entry: .precommit/check_cli_readme.sh
language: system
- id: check-ui-tests
name: Check if UI tests are passing
entry: .precommit/run_ui_tests.sh
language: system
pass_filenames: false