From 0167081880085ab2af199da07da11dce9cccc6d1 Mon Sep 17 00:00:00 2001 From: Federico Busetti <729029+febus982@users.noreply.github.com> Date: Sat, 4 May 2024 17:49:45 +0100 Subject: [PATCH 1/2] Install current package in editable mode Signed-off-by: Federico Busetti <729029+febus982@users.noreply.github.com> --- .github/workflows/python-tests.yml | 2 +- .github/workflows/reusable-github-pages.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 7d20153..b222f17 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -80,4 +80,4 @@ jobs: [Link to failing run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - PINNED: false \ No newline at end of file + PINNED: false diff --git a/.github/workflows/reusable-github-pages.yml b/.github/workflows/reusable-github-pages.yml index 17231d4..02bbfd7 100644 --- a/.github/workflows/reusable-github-pages.yml +++ b/.github/workflows/reusable-github-pages.yml @@ -44,12 +44,14 @@ jobs: with: python-version: "3.12" + # Here we want to install the current package in editable mode, + # in case mkdocs needs the package (i.e. we are building a mkdocs plugin). - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install poetry poetry config virtualenvs.create false - poetry install --no-root --with dev + poetry install --with dev - name: Configure Git user run: | From 8a896aa96a6457f1a679df7e1826b57355475e74 Mon Sep 17 00:00:00 2001 From: Federico Busetti <729029+febus982@users.noreply.github.com> Date: Sat, 4 May 2024 17:50:04 +0100 Subject: [PATCH 2/2] Address Ruff deprecation Signed-off-by: Federico Busetti <729029+febus982@users.noreply.github.com> --- Makefile | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1473d7d..9ee8046 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ docs: poetry run mkdocs serve fix: - poetry run ruff . --fix + poetry run ruff check . --fix poetry run ruff format . check: poetry-export diff --git a/tox.ini b/tox.ini index 555774b..fda9829 100644 --- a/tox.ini +++ b/tox.ini @@ -37,4 +37,4 @@ commands = [testenv:lint] commands = - ruff . + ruff check .