This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
86 lines (77 loc) · 1.91 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
[tox]
minversion = 3.0.0
skip_missing_interpreters = true
envlist =
py36
py36-lint
py36-type
[testenv]
description = run the test suite with (basepython)
deps = -rtest-requirements.txt
commands = pytest {posargs}
[testenv:py36-lint]
description = check the code style
basepython = python3.6
commands =
black --check {toxinidir}
flake8 {toxinidir}/mutpos2vcf
pylint {toxinidir}/mutpos2vcf --errors-only --output-format=colorized
[testenv:py36-type]
description = type check the library
basepython = python3.6
commands = mypy --config-file {toxinidir}/tox.ini {toxinidir}/mutpos2vcf {posargs}
[testenv:py36-docs]
description = test building of HTML docs
basepython = python3.6
deps: -rdocs/docs-requirements.txt
commands = sphinx-build docs {toxworkdir}/docs/_build -a --color -W -bhtml {posargs}
[testenv:dev]
description = the official mutpos2vcf development environment
envdir = venv
basepython = python3.6
usedevelop = True
commands =
python -m pip list --format=columns
python -c 'print("\n\nTo activate type: `source venv/bin/activate`\n\n")'
[coverage:run]
branch = true
source = mutpos2vcf
parallel = true
[flake8]
doctests = True
show-source = True
max-complexity = 12
ignore = E203, E266, E501, W503
exclude =
.git
.mypy_cache
.pytest_cache
libs
docs
tests
__init__.py
[mypy]
python_version = 3.6
platform = linux
mypy_path = docs/stubs
show_column_numbers = True
follow_imports = normal
ignore_missing_imports = True
disallow_untyped_calls = True
disallow_untyped_defs = True
no_implicit_optional = True
strict_optional = True
warn_no_return = True
warn_return_any = True
warn_redundant_casts = True
[pytest]
testpaths = mutpos2vcf tests docs
addopts =
--cov
--doctest-modules
--doctest-continue-on-failure
--doctest-plus
--doctest-rst
--doctest-glob '*.rst'
doctest_plus = enabled
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL