Skip to content

Commit 622b7a9

Browse files
Add pre-commit configuration and CI workflow
Signed-off-by: Aniket Patil <[email protected]>
1 parent 7d682fd commit 622b7a9

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/pre-commit.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pre-commit checks
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
pre-commit:
13+
name: Run Pre-Commit Hooks
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.11"
24+
25+
- name: Install pre-commit
26+
run: pip install pre-commit
27+
28+
- name: Run pre-commit checks
29+
run: pre-commit run --all-files

kubeflow/trainer/backends/kubernetes/utils_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from kubeflow.trainer.types import types
2121

2222

23+
2324
def _build_runtime() -> types.Runtime:
2425
runtime_trainer = types.RuntimeTrainer(
2526
trainer_type=types.TrainerType.CUSTOM_TRAINER,

0 commit comments

Comments
 (0)