mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
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:
parent
d4974b1229
commit
94179a1d91
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue