[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
  build
  dist
  docs
  *.egg
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
  build
  dist
  docs
  *.egg
show-source = true
max-line-length = 100

[doc8]
max-line-length = 100

Allow line length of 100 chars in docs
chore: Allow line length of 100 chars in docs
