-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
51 lines (43 loc) · 1.01 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
# tox (https://tox.readthedocs.io/) 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 = py39
[testenv]
description = Run the tests under {basepython}
changedir = {envtmpdir}
[testenv:pytest-cov]
deps =
pytest-cov
commands =
pytest --cov=MAIA --cov-append {posargs} {toxinidir}/tests -v
[testenv:pytest]
deps =
pytest
commands =
pytest {posargs} {toxinidir}/tests -v
[testenv:code_check]
deps =
mypy
flake8
commands =
flake8 {toxinidir}/src {toxinidir}/scripts
mypy --config-file {toxinidir}/tox.ini \
{posargs} \
{toxinidir}/src {toxinidir}/scripts {toxinidir}/tests
[testenv:clean]
deps =
coverage
skip_install =
true
commands =
coverage erase
[flake8]
max-line-length = 130
#max-complexity = 18
ignore = E203, W503
[mypy]
ignore_missing_imports = False
follow_imports = silent
show_error_codes = True