1[tox]
2envlist = docs, py37, py36, py35, pypy3, deps
3
4[testenv]
5passenv = WHEELHOUSE PIP_FIND_LINKS PIP_WHEEL_DIR PIP_INDEX_URL
6setenv = PYTHONPATH = {toxinidir}
7deps = -r{toxinidir}/ci/requirements-tests.txt
8commands = pytest -v --flakes --cache-clear --basetemp={envtmpdir} {posargs}
9
10[testenv:docs]
11deps = -r{toxinidir}/ci/requirements-docs.txt
12commands = sphinx-build -W -b html docs build/sphinx/html
13
14[testenv:qc]
15basepython = python3.6
16# needed for pytest-cov
17usedevelop = true
18commands = pytest -v --flakes --pep8 --mccabe --cov=eccodes --doctest-glob="*.rst" --cov-report=html --cache-clear --basetemp={envtmpdir} {posargs}
19
20[testenv:deps]
21deps =
22commands = python setup.py test
23
24[flake8]
25; F401 = imported but unused
26; F405 = may be undefined, or defined from star imports
27; F403 = import * used; unable to detect undefined names
28; W503 = line break before binary operator (set by 'black')
29; ignore = F401,F405,F403,W503
30max-line-length = 120
31; exclude = tests/*
32max-complexity = 12
33; See https://black.readthedocs.io/en/stable/the_black_code_style.html
34extend-ignore = E203
35
36[isort]
37profile=black
38