Skip to content

Commit b1fa6d3

Browse files
Add formatter actions
1 parent ea4aab7 commit b1fa6d3

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/formatter.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: formatter
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
isort:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/[email protected]
12+
- uses: isort/[email protected]
13+
with:
14+
configuration: "--settings-file=.isort.cfg"
15+
requirements-files: "requirements.txt"
16+
black:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/[email protected]
20+
- uses: psf/black@stable
21+
with:
22+
options: "--line-length=120"
23+
version: "24.2.0"

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66

77
env:
8-
SKIP: pylint
8+
SKIP: pylint,black,isort
99

1010
jobs:
1111
pre-commit:

0 commit comments

Comments
 (0)