1 # Tox (http://tox.testrun.org/) is a tool for running tests
2 # in multiple virtualenvs. This configuration file will run the
3 # test suite on all supported python versions. To use it, "pip install tox"
4 # and then run "tox" from this directory.
7 envlist = py35, py36, py37, py38, py39, pypy, flake8, pylint-errors, pylint-full, verify-manifest
10 commands = nosetests --with-timer
11 install_command = pip install --prefer-binary {opts} {packages}
16 -r
{toxinidir
}/requirements.txt
25 passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
33 PYCRAFT_RUN_INTERNET_TESTS=1
35 {[testenv]commands} --with-xunit --with-xcoverage --cover-package=minecraft --cover-erase --cover-inclusive --cover-tests --cover-branches --cover-min-percentage=60
45 basepython = python3.9
47 flake8 minecraft tests setup.py start.py bin
/generate_travis_yml.py
54 */clientbound
/play
/spawn_object_packet.py
:E221
,E222
,E271
,E272
,E201
55 minecraft
/networking
/packets
/__init__.py
:F401
57 [testenv:pylint-errors]
58 basepython = python3.9
62 commands = pylint minecraft -E
65 basepython = python3.9
70 - pylint minecraft --disable=E
73 basepython = python3.9
79 {toxinidir
}/bin
/build_docs
81 [testenv:verify-manifest]
82 basepython = python3.9