Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = cover,lint,mypy
isolated_build = true
skipsdist = true
# Standard env will run all test available for all providers.
[testenv]
whitelist_externals = poetry
commands =
poetry install -v -E full
poetry run tldextract --update
poetry run pytest --pyargs --junitxml=junit/test-results.xml --dist=loadfile lexicon
extras =
dev
full
setenv =
PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:--numprocesses auto}
PYTHONHASHSEED = 0
# Cover env will run all test available for all providers with coverage enabled.
[testenv:cover]
commands =
poetry install -v -E full
poetry run tldextract --update
poetry run pytest --pyargs --junitxml=junit/test-results.xml --cov=lexicon --cov-report=term-missing --cov-report=xml --dist=loadfile lexicon
# Light env will run all tests except for providers with optional dependencies.
[testenv:light]
commands =
poetry install -v
poetry run tldextract --update
poetry run pytest --pyargs --junitxml=junit/test-results.xml --dist=loadfile --xfail-providers-with-missing-deps lexicon
extras =
dev
# Lint env will check for code quality and errors, and fails if it does not match the minimal requirements.
[testenv:lint]
commands =
poetry install -v -E full
poetry run flake8 lexicon
# Mypy env will check for types in the Lexicon codebase.
[testenv:mypy]
commands =
poetry install -v -E full
poetry run mypy lexicon