diff --git a/.gitignore b/.gitignore index e3accafd..d2804864 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ notebooks/.ipynb_checkpoints tests/__pycache__ __pycache__/ .idea +.coverage docs/*.html diff --git a/pyproject.toml b/pyproject.toml index 9ecf75e9..da7797db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,3 +29,4 @@ dependencies = [ postgres = ["psycopg2", "db-dtypes"] bigqury = ["google-cloud-bigquery"] snowflake = ["snowflake-connector-python"] +test = ["tox"] diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..67eb6496 --- /dev/null +++ b/tox.ini @@ -0,0 +1,20 @@ +[tox] +envlist = + py310, + flake8, + +[py] +deps= + pytest-cov + pytest-remove-stale-bytecode + +[testenv:py310] +deps= + {[py]deps} +basepython = python3.10 +commands = pytest -v --cov=src/vanna --cov-report=term --cov-report=html + +[testenv:flake8] +exclude = .tox/* +deps = flake8 +commands = flake8 src