Codebase list dfdatetime / upstream/20211228 tox.ini
upstream/20211228

Tree @upstream/20211228 (Download .tar.gz)

tox.ini @upstream/20211228raw · history · blame

[tox]
envlist = py3{6,7,8,9,10},coverage,docs,pylint

[testenv]
pip_pre = True
setenv =
    PYTHONPATH = {toxinidir}
deps =
    -rrequirements.txt
    -rtest_requirements.txt
    coverage: coverage
commands =
    py3{6,7,8,9,10}: ./run_tests.py
    coverage: coverage erase
    coverage: coverage run --source=dfdatetime --omit="*_test*,*__init__*,*test_lib*" run_tests.py

[testenv:codecov]
skip_install = true
passenv =
    GITHUB_ACTION
    GITHUB_HEAD_REF
    GITHUB_REF
    GITHUB_REPOSITORY
    GITHUB_RUN_ID
    GITHUB_SHA
deps =
    codecov < 2.1.10
commands =
    codecov

[testenv:docs]
usedevelop = true
deps =
    -rdocs/requirements.txt
commands =
    sphinx-build -b html -d build/doctrees docs dist/docs
    sphinx-build -b linkcheck docs dist/docs

[testenv:pylint]
skipsdist=True
pip_pre = True
setenv =
    PYTHONPATH = {toxinidir}
deps =
    -rrequirements.txt
    -rtest_requirements.txt
    pylint >= 2.9.0, < 2.10.0
commands =
    pylint --version
    # Ignore setup.py for now due to:
    # setup.py:15:0: E0001: Cannot import 'distutils.command.bdist_msi' due to
    # syntax error 'expected an indented block (<unknown>, line 347)' (syntax-error)
    pylint --rcfile=.pylintrc dfdatetime tests