Skip to content

Commit 0cf67a5

Browse files
authored
Add pre-commit CI (#3)
1 parent ed70d41 commit 0cf67a5

2 files changed

Lines changed: 26 additions & 3 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) 2025 Boston Dynamics AI Institute LLC. All rights reserved.
2+
3+
name: Pre-Commit
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
pre-commit:
17+
runs-on: ubuntu-22.04
18+
steps:
19+
- uses: actions/checkout@v5
20+
- uses: actions/setup-python@v6
21+
with:
22+
python-version: "3.10"
23+
- uses: pre-commit/action@v3.0.1

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default_install_hook_types: [pre-commit, pre-push]
55

66
repos:
77
- repo: https://github.com/charliermarsh/ruff-pre-commit
8-
rev: 'v0.5.3'
8+
rev: 'v0.13.1'
99
hooks:
1010
- id: ruff
1111
args: ['--fix', '--config', 'pyproject.toml']
@@ -15,15 +15,15 @@ repos:
1515
)$
1616
1717
- repo: https://github.com/psf/black
18-
rev: 25.1.0
18+
rev: 25.9.0
1919
hooks:
2020
- id: black
2121
language_version: python3.10
2222
args: ['--config', 'pyproject.toml']
2323
verbose: true
2424

2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v5.0.0
26+
rev: v6.0.0
2727
hooks:
2828
- id: check-yaml
2929
- id: end-of-file-fixer

0 commit comments

Comments
 (0)