-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (55 loc) · 1.43 KB
/
Copy pathstatic_analysis.yml
File metadata and controls
64 lines (55 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Static analysis
on:
push:
branches:
- main
- devel
pull_request:
branches:
- main
- devel
jobs:
static-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Download and run cloc
run: |
curl -s https://raw.githubusercontent.com/AlDanial/cloc/master/cloc > cloc
chmod +x cloc
./cloc --version
./cloc $(git ls-files)
- name: Code formatting with black
continue-on-error: true
run: |
pip install black
pip install "black[jupyter]"
black --check src/
black --check tutorials/
- name: Code formatting with isort
continue-on-error: true
run: |
pip install isort
isort --check src/
isort --check tutorials/
- name: Code formatting with prospector
continue-on-error: true
run: |
pip install mypy
mypy src/
- name: Code formatting with prospector
continue-on-error: true
run: |
pip install prospector
prospector src/
- name: Code formatting with ruff
continue-on-error: true
run: |
pip install ruff
ruff check src/
- name: Code formatting with pylint
continue-on-error: true
run: |
pip install pylint
pylint src/