From 7d67b59f5adb0d5e2532c29f1cfe262675e00253 Mon Sep 17 00:00:00 2001 From: Thomas Lindner Date: Thu, 18 Nov 2021 02:09:18 +0100 Subject: [PATCH] run linting/typechecking only once --- setup.cfg | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index a03dda3..41fc17f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,19 +30,24 @@ console_scripts = basicpy = basicpy:main [tox:tox] -envlist = py38, py39 +envlist = lint, py38, py39 isolated_build = True -[testenv] +[testenv:lint] +skip_install = True deps = black flake8 mypy - pytest commands = black --check --diff src tests flake8 src tests mypy --disallow-untyped-defs src tests + +[testenv] +deps = + pytest +commands = pytest tests [flake8]