-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (53 loc) · 1.59 KB
/
.pre-commit-config.yaml
File metadata and controls
53 lines (53 loc) · 1.59 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
files: \.py$
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.28.0
# the default gitleaks configuration file : https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml
hooks:
- id: gitleaks
- repo: https://github.com/psf/black
rev: 25.9.0
hooks:
- id: black
files: ^/gen-ai/orchestrator-server/src/main/python/
language_version: python3
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
files: \.py$
args:
- --license-filepath
- gen-ai/orchestrator-server/src/main/python/server/LICENSE.txt
- --use-current-year
- --no-extra-eol
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
- id: double-quote-string-fixer
- id: trailing-whitespace
- id: end-of-file-fixer
files: '\.md$'
- repo: https://github.com/pycqa/isort
rev: 7.0.0
hooks:
- id: isort
files: "\\.(py)$"
args: [ --settings-path=gen-ai/orchestrator-server/src/main/python/server/pyproject.toml ]
- repo: https://github.com/hadialqattan/pycln
rev: v2.6.0
hooks:
- id: pycln
- repo: https://github.com/pypa/pip-audit
rev: v2.9.0
hooks:
- id: pip-audit
args:
# TODO: Remove this ignore when pygments publishes a fix for GHSA-5239-wwwm-4pmq
- "--ignore-vuln"
- "GHSA-5239-wwwm-4pmq"
additional_dependencies:
- "pip>=26.0"
- "filelock>=3.20.3"
- "urllib3>=2.6.3"