mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 14:10:21 -04:00
add placeholder for testings
This commit is contained in:
parent
3477df71a7
commit
35061b3899
3 changed files with 47 additions and 0 deletions
0
Testing/requirements.txt
Normal file
0
Testing/requirements.txt
Normal file
0
Testing/setup.py
Normal file
0
Testing/setup.py
Normal file
47
Testing/tox.ini
Normal file
47
Testing/tox.ini
Normal file
|
@ -0,0 +1,47 @@
|
|||
[tox]
|
||||
envlist =
|
||||
lint,py27,py35,py36,py37,py38,pypy,pypy3,docs,coverage-report,flake8,spelling
|
||||
|
||||
|
||||
[testenv:coverage-report]
|
||||
basepython = python3.7
|
||||
skip_install = true
|
||||
deps = coverage[toml]>=5.0.2
|
||||
commands =
|
||||
coverage combine
|
||||
coverage report
|
||||
|
||||
|
||||
[pipupgrade]
|
||||
commands =
|
||||
{envpython} -m pip install --upgrade pip
|
||||
|
||||
|
||||
[testenv:docs]
|
||||
changedir = {toxinidir}/docs
|
||||
commands =
|
||||
{[pipupgrade]commands}
|
||||
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
||||
{[cleanup]commands}
|
||||
deps =
|
||||
sphinx
|
||||
sphinx_rtd_theme
|
||||
|
||||
|
||||
[cleanup]
|
||||
commands =
|
||||
find {toxinidir}/tests -type f -name "*.pyc" -delete
|
||||
find {toxinidir}/tests -type d -name "__pycache__" -delete
|
||||
find {toxinidir}/src -type f -name "*.pyc" -delete
|
||||
find {toxinidir}/src -type d -name "__pycache__" -delete
|
||||
find {toxinidir}/src -type f -path "*.egg-info*" -delete
|
||||
find {toxinidir}/src -type d -path "*.egg-info" -delete
|
||||
|
||||
|
||||
[testenv:flake8]
|
||||
changedir = {toxinidir}
|
||||
deps = flake8
|
||||
commands =
|
||||
{[pipupgrade]commands}
|
||||
flake8 {toxinidir}/src/django_registration {toxinidir}/tests
|
||||
{[cleanup]commands}
|
Loading…
Add table
Add a link
Reference in a new issue