-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
131 lines (120 loc) · 2.49 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
[tox]
envlist =
lint
lintclient
test-py37
[testenv]
basepython = python3
deps =
coverage
mock
pytest
pytest-cov
pytest-girder>=3.0.5; python_version >= '3.6'
pytest-girder>=3.0.5,<3.1; python_version < '3.6'
pytest-xdist
celery!=4.4.4,<5
urllib3<1.26
-rrequirements-dev.txt
install_command = pip install --find-links https://girder.github.io/large_image_wheels {opts} {packages}
whitelist_externals =
rm
npx
commands =
rm -rf .tox/test/coverage/web_temp
girder build --dev
pytest --cov {envsitepackagesdir}/htan_girder {posargs}
npx nyc report --temp-dir build/test/coverage/web_temp --report-dir .tox/coverage --reporter cobertura --reporter text-summary
[testenv:test]
deps =
pytest
pytest-girder
commands =
pytest {posargs}
[testenv:lint]
skipsdist = true
skip_install = true
deps =
flake8
flake8-black
flake8-bugbear
flake8-docstrings
flake8-isort
flake8-quotes
pep8-naming
commands =
flake8 {posargs}
[testenv:lintclient]
skip_install = true
usedevelop = false
deps =
changedir = {toxinidir}/htan_girder/web_client
whitelist_externals =
npm
commands =
npm install --no-package-lock
npm run lint
[testenv:format]
skipsdist = true
skip_install = true
deps =
black
isort
commands =
isort {posargs:.}
black {posargs:.}
[testenv:release]
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_REPOSITORY_URL
deps =
twine
commands =
twine check {distdir}/*
twine upload --skip-existing {distdir}/*
[flake8]
max-line-length = 100
show-source = True
format = pylint
exclude =
node_modules,
.eggs,
.git,
__pycache__,
.tox
ignore =
# D10* - Missing docstring in *
D10,
# 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,
# W503 - Line break before binary operator
W503,
[pytest]
addopts = --verbose --strict --showlocals
testpaths = tests
[coverage:paths]
source =
htan_girder/
.tox/*/lib/python*/site-packages/htan_girder/
[coverage:run]
data_file = .tox/coverage/.coverage
branch = True
omit =
tests/*
.tox/*
parallel = True
[coverage:xml]
output = .tox/coverage/py_coverage.xml