[tox]
envlist = {py27,py34,py35,py36,py37}{,-scandir},pypy,typecheck,lint
sitepackages = False
skip_missing_interpreters=True

[testenv]
deps = -r {toxinidir}/testrequirements.txt
commands = coverage run -m pytest --cov-append {posargs} {toxinidir}/tests

[testenv:typecheck]
python = python37
deps =
  mypy==0.740
  -r {toxinidir}/testrequirements.txt
commands = make typecheck
whitelist_externals = make

[testenv:lint]
python = python37
deps =
  flake8
  # flake8-builtins
  flake8-bugbear
  flake8-comprehensions
  # flake8-isort
  flake8-mutable
commands = flake8 fs tests
