Skip to content

Commit c0fd78b

Browse files
committed
add ruff format to pre-commit
1 parent 7d17d71 commit c0fd78b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/lint.yml renamed to .github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permissions: {}
66

77
jobs:
88
lint:
9-
name: Check code with ruff
9+
name: Run pre-commit checks
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v5

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ repos:
66
- id: ruff-check
77
name: Run Ruff (lint)
88
args: [--exit-non-zero-on-fix]
9+
- id: ruff-format
10+
name: Run Ruff (format)
11+
args: [--exit-non-zero-on-fix]
912

1013
- repo: https://github.com/tox-dev/pyproject-fmt
1114
rev: v2.6.0

0 commit comments

Comments
 (0)