forked from biolink/kgx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (41 loc) · 747 Bytes
/
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
# TODO explain tox and testenv reserved words
[tox]
envlist = python3.8
python3.9
black-diff
flake8
docker-tests
[testenv]
extras =
jupyter
deps = -rrequirements.txt
commands = pytest
allowlist_externals =
/usr/bin/make
/bin/cat
/bin/cp
/bin/mkdir
/usr/bin/git
[testenv:black-diff]
line_length = 120
commands =
black --check --diff kgx tests
[testenv:black]
line_length = 120
commands =
black kgx tests
[testenv:flake8]
commands =
flake8 kgx tests
[flake8]
ignore = E501
max_line_length = 70
max-complexity = 10
per-file-ignores = __init__.py:F401
[testenv:example]
deps =
-rrequirements.txt
setenv =
PYTHONPATH=.
commands =
python examples/edgelabel.py