2019-08-05 19:22:18 +00:00
|
|
|
# this file is *not* meant to cover or endorse the use of tox or pytest or testing in general,
|
|
|
|
#
|
|
|
|
# It's meant to show the use of:
|
|
|
|
#
|
|
|
|
# - check-manifest
|
|
|
|
# confirm items checked into vcs are in your segdist
|
2019-11-28 23:14:08 +00:00
|
|
|
# - python setup.py check
|
2019-08-05 19:22:18 +00:00
|
|
|
# confirm required package meta-data in setup.py
|
|
|
|
# - readme_renderer (when using a ReStructuredText README)
|
|
|
|
# confirms your long_description will render correctly on PyPI.
|
|
|
|
#
|
|
|
|
# and also to help confirm pull requests to this project.
|
|
|
|
|
|
|
|
[tox]
|
2019-10-28 22:41:13 +00:00
|
|
|
envlist = py{35,36,37,38}
|
2019-08-05 19:22:18 +00:00
|
|
|
|
2019-10-28 22:41:13 +00:00
|
|
|
# DROP, it is duplication of setup.cfg
|
|
|
|
# [pytest]
|
|
|
|
# log_cli = 0
|
|
|
|
# log_cli_level = CRITICAL
|
|
|
|
# log_cli_format = %(message)s
|
|
|
|
# log_file = pytest.log
|
|
|
|
# log_file_level = DEBUG
|
|
|
|
# log_file_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
|
|
|
|
# log_file_date_format=%Y-%m-%d %H:%M:%S
|
2019-08-05 19:22:18 +00:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
basepython =
|
|
|
|
py35: python3.5
|
|
|
|
py36: python3.6
|
|
|
|
py37: python3.7
|
2019-10-28 22:41:13 +00:00
|
|
|
py38: python3.8
|
2019-08-05 19:22:18 +00:00
|
|
|
deps =
|
2019-12-01 08:42:33 +00:00
|
|
|
# this is derived requirements
|
2020-02-12 16:28:47 +00:00
|
|
|
-r requirements.txt
|
2019-08-05 19:22:18 +00:00
|
|
|
-r ./tests/requirements.txt
|
|
|
|
commands =
|
2019-10-28 22:41:13 +00:00
|
|
|
pip list
|
2020-02-12 16:28:47 +00:00
|
|
|
check-manifest
|
2019-10-28 22:41:13 +00:00
|
|
|
python setup.py check --metadata --strict
|
2020-03-14 17:01:57 +00:00
|
|
|
coverage run --source pytorch_lightning -m py.test pytorch_lightning tests -v --doctest-modules
|
|
|
|
coverage report
|
2019-11-09 05:59:14 +00:00
|
|
|
python setup.py sdist
|
|
|
|
twine check dist/*
|
2019-08-05 19:22:18 +00:00
|
|
|
|
2019-10-28 22:41:13 +00:00
|
|
|
# DROP, it is duplication of setup.cfg
|
|
|
|
# [flake8]
|
|
|
|
# exclude = .tox,*.egg,build,temp,examples/*
|
|
|
|
# select = E,W,F
|
|
|
|
# doctests = True
|
|
|
|
# verbose = 2
|
2019-08-05 19:22:18 +00:00
|
|
|
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
|
2019-10-28 22:41:13 +00:00
|
|
|
# format = pylint
|
|
|
|
# max-line-length = 100
|