Skip to content

Commit fcc6a2f

Browse files
committed
add black to format workflow
1 parent 382cd57 commit fcc6a2f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/format.yml

+7-9
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ name: Run Python linter and formatter
33
on:
44
push:
55
branches: [ 'main', 'improved-api']
6-
paths-ignore:
7-
- '**.md'
8-
- 'lab/**'
9-
- 'assets/**'
6+
paths:
7+
- '**.py'
108

119
pull_request:
1210
branches: [ 'main', 'improved-api' ]
13-
paths-ignore:
14-
- '**.md'
15-
- 'lab/**'
16-
- 'assets/**'
11+
paths:
12+
- '**.py'
1713

1814
jobs:
1915
checks-format:
@@ -31,4 +27,6 @@ jobs:
3127
- name: Check linting with ruff
3228
run: |
3329
ruff check .
34-
ruff format .
30+
- name: Check formatting with black
31+
run: |
32+
black . --verbose

0 commit comments

Comments
 (0)