Skip to content

Commit adcee58

Browse files
author
Diptorup Deb
committed
Add isort as a style check for dpctl.
1 parent 10c0fd6 commit adcee58

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/black.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a workflow to format Python code with black formatter
22

3-
name: black
3+
name: Code style Python
44

55
# Controls when the action will run. Triggers the workflow on push or pull request
66
# events but only for the master branch
@@ -11,7 +11,14 @@ on:
1111

1212
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1313
jobs:
14-
# This workflow contains a single job called "black"
14+
# The isort jon sort all imports in .py, .pyx, .pyd sources
15+
isort:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-python@v2
20+
- uses: jamescurtin/isort-action@master
21+
1522
black:
1623
# The type of runner that the job will run on
1724
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)