Skip to content

Commit bc66e8b

Browse files
authored
[ci] format in addition to lint on style workflow (#72)
* add ruff formatter to ci workflow * ci: rename lint workflow/job to style * ci: rename lint => style workflow file
1 parent 307fbfb commit bc66e8b

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: lint
1+
name: style
22

33
on:
44
pull_request: # any pull request
55

66
jobs:
7-
lint:
7+
style:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Check out repository
@@ -20,7 +20,11 @@ jobs:
2020
files: |
2121
**.py
2222
**.ipynb
23-
- name: Check style
23+
- name: Run linter
2424
if: steps.changed-files.outputs.any_changed == 'true'
2525
run: |
2626
uv tool run ruff check ${{ steps.changed-files.outputs.all_changed_files }}
27+
- name: Run formatter
28+
if: steps.changed-files.outputs.any_changed == 'true'
29+
run: |
30+
uv tool run ruff format --check ${{ steps.changed-files.outputs.all_changed_files }}

0 commit comments

Comments
 (0)