Skip to content

Commit

Permalink
Merge pull request #53 from vanna-ai/arslan/add-test-suit
Browse files Browse the repository at this point in the history
Add tox
  • Loading branch information
zainhoda authored Aug 2, 2023
2 parents d75cd99 + 365a890 commit 392022a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ notebooks/.ipynb_checkpoints
tests/__pycache__
__pycache__/
.idea
.coverage
docs/*.html
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ dependencies = [
postgres = ["psycopg2", "db-dtypes"]
bigqury = ["google-cloud-bigquery"]
snowflake = ["snowflake-connector-python"]
test = ["tox"]
20 changes: 20 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 392022a

Please sign in to comment.