Skip to content

Commit a3a0545

Browse files
authored
GitHub pages improvement (#30)
* Install current package in editable mode Signed-off-by: Federico Busetti <729029+febus982@users.noreply.github.com> * Address Ruff deprecation Signed-off-by: Federico Busetti <729029+febus982@users.noreply.github.com> --------- Signed-off-by: Federico Busetti <729029+febus982@users.noreply.github.com>
1 parent 2383871 commit a3a0545

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ jobs:
8080
8181
[Link to failing run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
8282
83-
PINNED: false
83+
PINNED: false

.github/workflows/reusable-github-pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ jobs:
4444
with:
4545
python-version: "3.12"
4646

47+
# Here we want to install the current package in editable mode,
48+
# in case mkdocs needs the package (i.e. we are building a mkdocs plugin).
4749
- name: Install dependencies
4850
run: |
4951
python -m pip install --upgrade pip
5052
python -m pip install poetry
5153
poetry config virtualenvs.create false
52-
poetry install --no-root --with dev
54+
poetry install --with dev
5355
5456
- name: Configure Git user
5557
run: |

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ docs:
1616
poetry run mkdocs serve
1717

1818
fix:
19-
poetry run ruff . --fix
19+
poetry run ruff check . --fix
2020
poetry run ruff format .
2121

2222
check: poetry-export

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ commands =
3737

3838
[testenv:lint]
3939
commands =
40-
ruff .
40+
ruff check .

0 commit comments

Comments
 (0)