リビジョン | 40856e291a5d562bbd9a20422840a0c35186578c (tree) |
---|---|
日時 | 2019-08-26 07:32:22 |
作者 | ![]() |
コミッター | H. Turgut Uyar |
Add tox configuration
@@ -9,3 +9,4 @@ | ||
9 | 9 | .venv |
10 | 10 | .pytest_cache |
11 | 11 | .coverage |
12 | +.tox |
@@ -39,6 +39,29 @@ | ||
39 | 39 | [tool.black] |
40 | 40 | line-length = 96 |
41 | 41 | |
42 | +[tool.tox] | |
43 | +legacy_tox_ini = """ | |
44 | +[tox] | |
45 | +envlist = py{37,36}, style | |
46 | +isolated_build = True | |
47 | + | |
48 | +[testenv] | |
49 | +whitelist_externals = poetry | |
50 | +commands = | |
51 | + poetry install -v | |
52 | + {posargs:pytest} | |
53 | + | |
54 | +[testenv:coverage] | |
55 | +commands = | |
56 | + poetry install -v | |
57 | + {posargs:pytest} --cov-report term-missing --cov=humphrey tests | |
58 | + | |
59 | +[testenv:style] | |
60 | +commands = | |
61 | + poetry install -v | |
62 | + {posargs:flake8} humphrey | |
63 | +""" | |
64 | + | |
42 | 65 | [build-system] |
43 | 66 | requires = ["poetry>=0.12"] |
44 | 67 | build-backend = "poetry.masonry.api" |