Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 51 additions & 12 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ on:
- main
- devel

defaults:
run:
shell: bash

jobs:
static-analysis:
cloc:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
Expand All @@ -24,39 +28,74 @@ jobs:
./cloc --version
./cloc $(git ls-files)

black:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Code formatting with black
run: |
pip install black
pip install "black[jupyter]"
pip install black "black[jupyter]"
black --check src/
black --check tutorials/

isort:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Code formatting with isort
run: |
pip install isort
isort --check src/
isort --check tutorials/

- name: Code formatting with mypy
continue-on-error: true
mypy:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Type checking with mypy
run: |
pip install mypy
mypy src/

- name: Code formatting with prospector
continue-on-error: true
prospector:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Code analysis with prospector
run: |
pip install prospector
prospector src/

- name: Code formatting with ruff
continue-on-error: true

ruff:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Linting with ruff
run: |
pip install ruff
ruff check src/

- name: Code formatting with pylint
continue-on-error: true
pylint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Linting with pylint
run: |
pip install pylint
pylint src/
3 changes: 2 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ documentation for details.
.. toctree::
:maxdepth: 2
:caption: Tutorials:
:glob:

tutorials/tutorial_01
tutorials/*