/
tox.ini
69 lines (63 loc) · 1.36 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
[tox]
envlist = flake8,docs
isolated_build = True
# At least this version is needed for PEP 517/518 support.
minversion = 3.3.0
[testenv]
deps =
cython
numpy
# Linting
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8
flake8-builtins
flake8-colors
flake8-comprehensions
flake8-logging-format
flake8-mutable
commands = flake8 sksurv/ tests/ setup.py
# Documentation
[testenv:docs]
basepython = python3
deps =
-rdoc/docs_requirements.txt
{[testenv]deps}
changedir = doc
commands =
sphinx-build -d _build/doctrees -E -W -b html . _build/html
# Release tooling
[testenv:release]
basepython = python3
skip_install = true
deps =
cython
numpy
wheel
setuptools >= 40.6.0
setuptools_scm
twine >= 1.5.0
commands =
python setup.py -q sdist
twine upload --skip-existing dist/*
[flake8]
ignore =
E226, # missing whitespace around arithmetic operator
E241, # multiple spaces after ,
C408, # unnecessary dict call, use literal
W503 # line break before binary operator
exclude =
.tox,
.git,
__pycache__,
doc/conf.py,
build,
dist,
*.egg-info,
.eggs,
sksurv/linear_model/src/eigen
max-complexity = 10
max-line-length = 120
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s