diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index bf3f9b6..2fba12b 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -10,8 +10,12 @@ on: - main - devel +defaults: + run: + shell: bash + jobs: - static-analysis: + cloc: runs-on: ubuntu-latest steps: - name: Checkout the code @@ -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/ diff --git a/docs/source/index.rst b/docs/source/index.rst index fedda8e..df6c5b3 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -14,5 +14,6 @@ documentation for details. .. toctree:: :maxdepth: 2 :caption: Tutorials: + :glob: - tutorials/tutorial_01 + tutorials/* \ No newline at end of file