Tox infra for testing
Closed this issue · 1 comments
stonier commented
Make use of tox for testing now that python3 setup.py tests
is going away . e.g. a typical tox.ini
:
################################################################################
# Tox Configuration
################################################################################
[tox]
envlist = py36, py38, flake8
################################################################################
# PyTest
################################################################################
[testenv]
deps =
pytest
commands =
pytest
################################################################################
# Flake 8
################################################################################
[testenv:flake8]
skip_install = true
deps =
flake8
flake8-bugbear
flake8-docstrings>=1.3.1
flake8-typing-imports>=1.1
pep8-naming
commands =
flake8 streamlit_mercury_dashboards/ tests/ setup.py
################################################################################
# Flake 8 Configuration
#
# Don't require docstrings, but parse them correctly if they are there
# D100 - Missing docstring in public module
# D103 - Missing docstring in public function
################################################################################
[flake8]
max-line-length = 120
statistics = 1
ignore = D100, D103
exclude =
.tox
.venv
.git
doc
dist
stonier commented
# To run all tests
$ tox
# Choose one of py37, py38 depending on what version of python you use
$ tox -e py38
# To run a flake8 linter
$ tox -e flake8