[tox]
envlist = py{27,37,38},lint,fmt,check-fmt

[testenv]
usedevelop = true
basepython =
  py27: python2.7
  py37: python3.7
  py38: python3.8
  lint: python3.8
  fmt:  python3.8
deps =
  -rrequirements.txt
  -rtest-requirements.txt
commands = pytest \
  --junit-xml test-results.xml \
  --cov schwifty \
  --cov-report html \
  --cov-report term-missing \
  --cov-config pytest.ini \
  --doctest-modules {posargs} tests/ schwifty/

[testenv:lint]
deps =
  flake8
commands = flake8

[testenv:fmt]
skip_install = true
deps =
  black
commands = black --check .

[flake8]
ignore = H803,E203
exclude = .venv,.tox,dist,docs,*.egg,build,.ropeproject
show-source = true
max-line-length = 100

[tox]
envlist = py{27,37,38},lint,fmt,check-fmt

[testenv]
usedevelop = true
basepython =
  py27: python2.7
  py37: python3.7
  py38: python3.8
  lint: python3.8
  fmt:  python3.8
deps =
  -rrequirements.txt
  -rtest-requirements.txt
commands = pytest \
  --junit-xml test-results.xml \
  --cov schwifty \
  --cov-report html \
  --cov-report term-missing \
  --cov-config pytest.ini \
  --doctest-modules {posargs} tests/ schwifty/

[testenv:lint]
deps =
  flake8
commands = flake8

[testenv:fmt]
skip_install = true
deps =
  black
commands = black --check .

[flake8]
ignore = H803,E203,W503
exclude = .venv,.tox,dist,docs,*.egg,build,.ropeproject
show-source = true
max-line-length = 100

Exclude W503 error about line break before binary operator
Exclude W503 error about line break before binary operator
