From ff2717afd9e407299da2da8b5235f3d1319aaea5 Mon Sep 17 00:00:00 2001 From: Sid Mohan Date: Mon, 5 Aug 2024 17:02:21 -0700 Subject: [PATCH] - updated dev-cicd --- tox.ini | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index efe469ef..4846df23 100644 --- a/tox.ini +++ b/tox.ini @@ -4,8 +4,8 @@ isolated_build = True [testenv] deps = - pytest - pytest-codeblocks + pytest==7.4.0 + pytest-asyncio==0.21.0 pytest-cov -r requirements-dev.txt extras = all @@ -15,4 +15,24 @@ allowlist_externals = commands = pip install --no-cache-dir -r requirements-dev.txt tesseract --version - pytest {posargs} --codeblocks \ No newline at end of file + pytest {posargs} -v -s --cov=datafog --cov-report=term-missing + +[testenv:lint] +skip_install = true +deps = + black + isort + flake8 +commands = + black --check . + isort --check-only . + flake8 . + +[testenv:typecheck] +deps = + mypy +commands = + mypy datafog tests + +[pytest] +asyncio_mode = auto \ No newline at end of file