-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
115 lines (106 loc) · 2.53 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = cov_erase, {py2,py3}-{nosparse,sparse}, docs, distrib, codestyle, coverage
[testenv]
commands =
{envpython} -m coverage run --parallel-mode --source=src/ --branch setup.py test
deps =
six
numpy>=1.13
unittest2
scipy
py3: dask[array]>=0.14.2
py2: dask[array]>=1.1.0
pyfftw
pandas
xarray
coverage
sparse: sparse
pip
setenv=HDF5_DISABLE_VERSION_CHECK=1
depends=cov_erase
[testenv:docs]
changedir=doc
deps=
sphinx
{[testenv]deps}
commands=
sphinx-build -W -b html -d {envtmpdir}/doctrees source {envtmpdir}/html
sphinx-build -W -b texinfo -d {envtmpdir}/doctrees source {envtmpdir}/texinfo
sphinx-build -W -b man -d {envtmpdir}/doctrees source {envtmpdir}/man
sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees source {envtmpdir}/html
skip_install=True
[testenv:codestyle]
deps=
flake8
flake8-print<3.0
flake8-string-format
flake8-deprecated
flake8-blind-except
flake8-docstrings
flake8-rst-docstrings
flake8-bugbear
flake8-builtins
commands=
{envpython} setup.py flake8
skip_install=True
[testenv:pylint]
deps=
pylint
setuptools-lint
commands=
{envpython} setup.py lint --lint-unsafe-load-any-extension=yes
[testenv:coverage]
deps=
coverage
commands=
{envpython} -m coverage combine
{envpython} -m coverage report --fail-under=96 --omit=*_flymake.py --show-missing
depends=py2,py3,py27,py34,py36
skip_install=true
[testenv:cov_erase]
deps=
coverage
commands=
{envpython} -m coverage erase
skip_install=true
depends=
[testenv:distrib]
deps=
setuptools
twine
wheel
skip_install=true
commands=
{envpython} setup.py check
{envpython} setup.py --quiet sdist
{envpython} -m twine check dist/atmospheric-inverse-methods-for-flux-optimization-*
{envpython} setup.py --quiet bdist_wheel
{envpython} -m twine check dist/atmospheric_inverse_methods_for_flux_optimization-*.whl
{envpython} setup.py --quiet rotate --keep=4 --match=*.zip,*.whl,*.tar.bz2,*.tar.gz
[flake8]
exclude =
.eggs,
.git,
.tox,
__pycache__,
build,
dist,
conf.py,
stubs
max-complexity = 15
doctests = True
ignore = D413, C408
per-file-ignores =
JAMES2019/*.py:E402
select =
# pycodestyle
E,
# mccabe
C,
# pyflakes
F,
B,D