forked from kubeflow/trainer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (42 loc) · 1.11 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (42 loc) · 1.11 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
exclude: '^charts/kubeflow-trainer/.*\.yaml$'
- id: check-json
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
name: isort
entry: isort --profile black
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
name: cargo fmt (data_cache)
files: ^pkg/data_cache/.*\.rs$
args: [--manifest-path, pkg/data_cache/Cargo.toml, --]
- id: cargo-check
name: cargo check (data_cache)
files: ^pkg/data_cache/.*\.rs$
args: [--manifest-path, pkg/data_cache/Cargo.toml]
exclude: |
(?x)^(
docs/images/.*|
pkg/client/.*|
api/python_api/kubeflow_trainer_api/models/.*|
VERSION
)$