-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
52 lines (47 loc) · 1.25 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
[tox]
envlist = black,flake8,isort
# Linting
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8==3.8.3
flake8-builtins
flake8-colors
flake8-comprehensions
flake8-logging-format
flake8-mutable
importlib-metadata==4.13.0
commands = flake8 daft/ train.py ablation_adni_survival.py ablation_adni_classification.py
[testenv:black]
basepython = python3
skip_install = true
deps =
black==19.10b0
click==8.0.4
commands = black -t py37 -l 120 --check --diff daft/ train.py ablation_adni_survival.py ablation_adni_classification.py
[testenv:isort]
basepython = python3
skip_install = true
deps =
isort
changedir = {toxinidir}
commands = isort . --check --diff
[flake8]
max-line-length = 120
ignore =
E203, # space before : (needed for how black formats slicing)
E226, # missing whitespace around arithmetic operator
E241, # multiple spaces after ,
C408, # unnecessary dict call, use literal
W503, # line break before binary operator
W504 # line break after binary operator
exclude =
*.egg-info,
.eggs
[isort]
line_length = 120
known_first_party = daft
known_third_party = h5py,numpy,pandas,scipy,sklearn,sksurv,tqdm,torch,torchvision
multi_line_output = 3
include_trailing_comma = True