-
Notifications
You must be signed in to change notification settings - Fork 128
/
.pre-commit-config.yaml
36 lines (36 loc) · 1.12 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
######################################################### {COPYRIGHT-TOP} ###
# IBM Confidential
# IBM Watson Machine Learning Core - Internal Tooling
# Copyright IBM Corp. 2022
######################################################### {COPYRIGHT-END} ###
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.9-for-vscode
hooks:
- id: prettier
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: [--config=.black.toml]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- 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, --fail-on-unaudited]
### Exclude submodules as some are part of other organizations with their own policies
exclude: |
(?x)^(
autopilot/.*|
codeflare-cli/.*|
codeflare-sdk/.*|
docker_build_scripts/.*|
mcad/.*|
datalake/.*|
torchx/.*|
tsfm/.*
)$