From 9a53a439a45ea3cac83415c29fec3e978589691e Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 13 Sep 2025 19:22:31 +0200 Subject: [PATCH 1/2] Reference tutorials with glob instead of specific paths --- docs/source/index.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From 3f3debbfc7577cb2aeb3a665e6fec82aa10d815c Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 13 Sep 2025 19:28:10 +0200 Subject: [PATCH 2/2] Split each linter into it's own job --- .github/workflows/static_analysis.yml | 63 ++++++++++++++++++++++----- 1 file changed, 51 insertions(+), 12 deletions(-) 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/