-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (43 loc) · 1022 Bytes
/
.pre-commit-config.yaml
File metadata and controls
46 lines (43 loc) · 1022 Bytes
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
default_install_hook_types:
- pre-commit
- commit-msg
default_stages:
- pre-commit
- pre-push
default_language_version:
python: python3.12
repos:
- repo: https://github.com/ibm/detect-secrets
rev: 0.13.1+ibm.62.dss
hooks:
- id: detect-secrets # pragma: whitelist secret
args: [
--baseline,
.secrets.baseline,
--use-all-plugins,
--fail-on-unaudited,
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
- id: trailing-whitespace
exclude: ^(docs/gh-pages/.*)$
- id: end-of-file-fixer
exclude: ^(docs/gh-pages/.*)$
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.4.1
hooks:
- id: commitizen
- id: commitizen-branch
stages:
- post-commit
- pre-push
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.13
hooks:
- id: ruff-check
args: [ --fix ]
types_or: [ python, pyi ]
exclude: ^src/oso/framework/plugin/addons/signing_server/generated/.*$