@@ -290,6 +290,19 @@ jobs:
290
290
- name : " Run pylint..."
291
291
run : |
292
292
pylint --jobs=$(nproc) pynest/ testsuite/pytests/*.py testsuite/regressiontests/*.py
293
+
294
+ isort :
295
+ runs-on : " ubuntu-20.04"
296
+ steps :
297
+ - name : " Checkout repository content"
298
+ uses : actions/checkout@v3
299
+ with :
300
+ fetch-depth : 0
301
+
302
+ - name : " Run isort..."
303
+ uses : isort/isort-action@f14e57e1d457956c45a19c05a89cccdf087846e5 # 1.1.0
304
+ with :
305
+ configuration : --profile=black --thirdparty="nest" --check-only --diff
293
306
294
307
black :
295
308
runs-on : " ubuntu-20.04"
@@ -298,8 +311,9 @@ jobs:
298
311
uses : actions/checkout@v3
299
312
with :
300
313
fetch-depth : 0
314
+
301
315
- name : " Run black..."
302
- uses : psf/black@bf7a16254ec96b084a6caf3d435ec18f0f245cc7 # 23.3 .0
316
+ uses : psf/black@193ee766ca496871f93621d6b58d57a6564ff81b # 23.7 .0
303
317
with :
304
318
jupyter : true
305
319
@@ -405,7 +419,7 @@ jobs:
405
419
build_linux :
406
420
if : ${{ !contains(github.event.head_commit.message, 'ci skip') }}
407
421
runs-on : ${{ matrix.os }}
408
- needs : [clang-format, mypy, copyright_headers, unused_names, forbidden_types, pylint, black, flake8]
422
+ needs : [clang-format, mypy, copyright_headers, unused_names, forbidden_types, pylint, isort, black, flake8]
409
423
env :
410
424
CXX_FLAGS : " -pedantic -Wextra -Woverloaded-virtual -Wno-unknown-pragmas"
411
425
NEST_VPATH : " build"
@@ -607,7 +621,7 @@ jobs:
607
621
build_macos :
608
622
if : ${{ !contains(github.event.head_commit.message, 'ci skip') }}
609
623
runs-on : ${{ matrix.os }}
610
- needs : [clang-format, mypy, copyright_headers, unused_names, forbidden_types, pylint, black, flake8]
624
+ needs : [clang-format, mypy, copyright_headers, unused_names, forbidden_types, pylint, isort, black, flake8]
611
625
env :
612
626
CXX_FLAGS : " -pedantic -Wextra -Woverloaded-virtual -Wno-unknown-pragmas"
613
627
NEST_VPATH : " build"
0 commit comments