ci: Include test dependencies when linting

Include the test dependencies when linting, especially `pytest`. We need
this because `mypy` cannot understand the `pytest.raises` exception, and
specifically the fact that it catches exceptions. It assumes that the
next code block is unreachable, since it doesn't see any try ... except.
This commit is contained in:
Alex Pyrgiotis 2024-04-24 16:27:14 +03:00
parent d4974b1229
commit 94179a1d91
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -86,7 +86,7 @@ jobs:
command: | command: |
apt-get update apt-get update
apt-get install -y git make python3 python3-poetry --no-install-recommends apt-get install -y git make python3 python3-poetry --no-install-recommends
poetry install --no-ansi --only lint poetry install --no-ansi --only lint,test
- run: - run:
name: Run linters to enforce code style name: Run linters to enforce code style
command: poetry run make lint command: poetry run make lint