-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
63 lines (55 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
55
56
57
58
59
60
61
62
63
[tox]
envlist =
style
type
py
minversion = 3.4
isolated_build = true
[testenv:py]
allowlist_externals =
ipfs
sh
tar
deps =
pytest-cov
pytest-trio
commands_pre =
tar -czvf {envtmpdir}/rethinkdump.tar.gz -C tests/assets rethinkdump
rethinkdb-restore {envtmpdir}/rethinkdump.tar.gz
ipfs add -r tests/assets/ipfs
commands = pytest {posargs}
commands_post = sh -c 'echo r.db_drop\(\"test\"\).run\(\) | rethinkdb-repl'
[testenv:type]
deps =
mypy >= 0.790
pytest-trio
trio-typing
commands = mypy src stubs tests
[testenv:style]
skip_install = true
deps =
flake8-builtins
isort
pep8-naming
commands =
flake8
isort . --check --diff
[pytest]
trio_mode = true
addopts =
--cov
--no-cov-on-fail
[coverage:run]
branch = true
omit = */__main__.py
source = acanban
[coverage:report]
fail_under = 100
show_missing = true
skip_covered = true
[flake8]
hang-closing = true
ignore = E225, E226, E701, E704, W503
[isort]
balanced_wrapping = true
combine_as_imports = true