Skip to content

Tox infra for testing #351

@stonier

Description

@stonier

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions