コミットメタ情報

リビジョン40856e291a5d562bbd9a20422840a0c35186578c (tree)
日時2019-08-26 07:32:22
作者H. Turgut Uyar <uyar@teki...>
コミッターH. Turgut Uyar

ログメッセージ

Add tox configuration

変更サマリ

差分

diff -r f54b4b483500 -r 40856e291a5d .hgignore
--- a/.hgignore Mon Aug 26 01:22:27 2019 +0300
+++ b/.hgignore Mon Aug 26 01:32:22 2019 +0300
@@ -9,3 +9,4 @@
99 .venv
1010 .pytest_cache
1111 .coverage
12+.tox
diff -r f54b4b483500 -r 40856e291a5d pyproject.toml
--- a/pyproject.toml Mon Aug 26 01:22:27 2019 +0300
+++ b/pyproject.toml Mon Aug 26 01:32:22 2019 +0300
@@ -39,6 +39,29 @@
3939 [tool.black]
4040 line-length = 96
4141
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+
4265 [build-system]
4366 requires = ["poetry>=0.12"]
4467 build-backend = "poetry.masonry.api"
旧リポジトリブラウザで表示