Skip to content

Commit a784433

Browse files
committed
Added static analysis workflow
1 parent 9151d5b commit a784433

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Static analysis
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- devel
8+
pull_request:
9+
branches:
10+
- master
11+
- devel
12+
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
jobs:
18+
19+
black:
20+
runs-on: ubuntu-latest
21+
continue-on-error: true
22+
steps:
23+
- name: Checkout the code
24+
uses: actions/checkout@v4
25+
26+
- name: Code formatting with black
27+
run: |
28+
pip install black "black[jupyter]"
29+
black --check .
30+
31+
isort:
32+
runs-on: ubuntu-latest
33+
continue-on-error: true
34+
steps:
35+
- name: Checkout the code
36+
uses: actions/checkout@v4
37+
38+
- name: Code formatting with isort
39+
run: |
40+
pip install isort
41+
isort --check .
42+

0 commit comments

Comments
 (0)