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