Skip to content

Commit e05e3cf

Browse files
add pre-commit workflow
Signed-off-by: Michael Clifford <mcliffor@redhat.com>
1 parent bb79744 commit e05e3cf

3 files changed

Lines changed: 23 additions & 4 deletions

File tree

.github/workflows/pre-commit.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Pre-commit
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup python
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: 3.12
19+
20+
- name: Run pre-commit
21+
uses: pre-commit/action@v3.0.1

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v3.2.0
5+
rev: v5.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
9-
- id: check-yaml
109
- id: check-added-large-files

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ This project uses `uv` as its package manager for the python based notebooks and
2525
2) `uv sync`
2626
3) `source .venv/bin/activate`
2727

28-
Once you are using the virtual environment, you should be good to run any of the scripts or notebooks in `demos/`.
29-
28+
Once you are using the virtual environment, you should be good to run any of the scripts or notebooks in `demos/`.

0 commit comments

Comments
 (0)