-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
40 lines (31 loc) · 804 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
[tox]
envlist = py{36,37,38}-pytest-coverage, docs, flake8
isolated_build = True
[tox:.package]
basepython = python3
[testenv]
recreate = true
skip_install = true
whitelist_externals = poetry
commands =
poetry install
poetry run pytest tests/ -v --color=yes {posargs}
[testenv:py37-pytest-coverage]
passenv = TRAVIS TRAVIS_*
commands =
poetry install
poetry run pytest tests/ -v --color=yes --cov=skmpe {posargs}
coveralls
[testenv:docs]
commands =
poetry install --no-dev --extras docs
poetry run make -C docs/ html
[testenv:flake8]
deps =
flake8
flake8-colors
commands =
flake8 skmpe/ tests/
[flake8]
max-line-length = 120
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s