pipelines/components/PyTorch/pytorch-kfp-components/tox.ini

49 lines
832 B
INI

[tox]
envlist = clean,py38
skip_missing_interpreters = true
[flake8]
exclude =
.git,
.tox,
.pytest_cache,
__pycache__,
dist,
build,
*.egg-info,
.pylintrc
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
extras = tests
testpaths = tests
deps =
pytest
pytest-cov
absl-py
sklearn
wget
pandas
minio
mock
pytorch-lightning
torchmetrics
kfp
depends =
{py38}: clean
report: py38
commands =
flake8 --version
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
pylint --rcfile=.pylintrc --exit-zero pytorch_kfp_components
py.test --cov=pytorch-kfp-components --cov-append --cov-report=term-missing -vvv -s {posargs}
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase