From 94179a1d91a3adc993fdf9b32e7311901dade939 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Wed, 24 Apr 2024 16:27:14 +0300 Subject: [PATCH] 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. --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ff82350..ead11b7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -86,7 +86,7 @@ jobs: command: | apt-get update 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: name: Run linters to enforce code style command: poetry run make lint