forked from DigitalSlideArchive/HistomicsTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
142 lines (133 loc) · 2.52 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[tox]
envlist =
py{37,38,39,310,311}
docs
flake8
skip_missing_interpreters = true
toxworkdir = {toxinidir}/.tox
[testenv]
passenv =
DOCKER_*
GENERATE_GROUNDTRUTH
PYTEST_*
# This adds the tests directory to the python path so we can import the test
# utilities as needed.
setenv =
PYTHONPATH={toxinidir}/tests
PIP_FIND_LINKS=https://girder.github.io/large_image_wheels
deps =
coverage
pooch
pytest>=3.6
pytest-cov>=2.6
pytest-xdist
-rrequirements-dev.txt
allowlist_externals =
docker
commands =
pytest --cov-config tox.ini {posargs}
-docker compose --project-directory tests down --volumes
[testenv:flake8]
skipsdist = true
skip_install = true
deps =
flake8<6
flake8-bugbear
flake8-docstrings
flake8-isort
flake8-quotes
commands = flake8 {posargs}
[testenv:docs]
passenv = HOME
# skip_install = true
usedevelop = false
deps =
jupyter
nbsphinx
pypandoc
sphinx
sphinx-rtd-theme
changedir = {toxinidir}/docs
allowlist_externals =
make_docs.sh
commands =
./make_docs.sh
basepython = python3.9
[flake8]
max-line-length = 100
show-source = True
format = pylint
max-complexity = 14
exclude =
*/*egg*/*
.git
__pycache__
.tox
_skbuild
ignore =
# D10* - Missing docstring in *
D10
D200
D205
D400
D401
# E123 - Closing bracket does not match indentation of opening bracket’s line
E123
# N802 - Function name should be lowercase.
N802
# N803 - Argument name should be lowercase.
N803
# N806 - Variable in function should be lowercase.
N806
# N812 - Lowercase imported as non lowercase.
N812
# N815 - mixedCase variable in class scope
N815
# N816 - mixedCase variable in global scope
N816
# W504 - Line break after binary operator
W504
# We may wish to gradually change or reconsider these
B007
D201
D202
D204
E226
E241
E265
E741
Q000
W503
[testenv:format]
description = Autoformat import order and pep8
skipsdist = true
skip_install = true
deps =
autopep8
isort
commands =
isort {posargs:.}
autopep8 -ria histomicstk tests
[pytest]
addopts = --verbose --strict --showlocals --cov-report="term" --cov-report="xml" --cov
testpaths =
histomicstk
tests
[coverage:paths]
source =
histomicstk/
.tox/*/lib/python*/site-packages/histomicstk/
[coverage:run]
data_file = .tox/coverage/.coverage
branch = True
include =
histomicstk/*
.tox/*/lib/python*/site-packages/histomicstk/*
omit =
tests/*
*_test.py
**/test_*.py
histomicstk/annotations_and_masks/pyrtree/*
parallel = True
[coverage:xml]
output = .tox/coverage/py_coverage.xml