[tox]
minversion = 2.6.0
envlist = py3{4,5,6}
skipsdist = True

[testenv]
commands = {envpython} -m unittest {posargs}

[tox]
minversion = 2.6.0
envlist = py3{4,5,6}, flake8
skipsdist = True

[testenv]
commands = {envpython} -m unittest {posargs}

[testenv:flake8]
basepython = python3.6
deps = flake8
commands = {envpython} -m flake8 {posargs}

[flake8]
max-line-length = 100
max-complexity = 10
ignore =

Add Flake8 checks to the test run
Add Flake8 checks to the test run

* run the checks with Python 3.6 only

* use somewhat arbitrary limit of 100 characters per line

* use McCabe's recommended value of 10 for code complexity

* do not ignore errors and warnings
