forked from fepegar/torchio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (48 loc) · 1.02 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
[tox]
envlist = py{37, 38, 39, 310}
isolated_build = True
[testenv]
extras = dev
commands =
pytest \
--capture=no \
--cov=torchio \
--cov-report=xml
passenv =
CI
GITHUB_*
setenv =
PYTHONPATH = {toxinidir}
[testenv:format]
whitelist_externals =
pre-commit
requires =
pre-commit
skip_install = True
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:lint]
whitelist_externals =
pre-commit
requires =
pre-commit
deps =
flake8 >= 3.8
commands =
pre-commit run --all-files
flake8
[flake8]
; See link below for available options
; https://flake8.pycqa.org/en/latest/user/options.html#options-and-their-descriptions
ignore =
E123, ; closing bracket does not match indentation of opening bracket's line
W503 ; line break before binary operator
exclude =
.git,
.tox,
build,
dist
[pytest]
; See link below for available options
; https://docs.pytest.org/en/latest/reference/reference.html#configuration-options
testpaths = tests