forked from behave-contrib/behave-html-formatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
75 lines (63 loc) · 1.5 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
64
65
66
67
68
69
70
71
72
73
74
75
# tox (https://tox.readthedocs.io/) is a tool for running tests
# Run tests in multiple virtualenvs.
[tox]
envlist =
flake8
pylint
py{27,36,37,38,39,py2,py3}
readme
clean
[testenv]
description = Unit tests
deps = pytest
commands = pytest
[testenv:black]
description = Autoformat your Python code
deps = black
commands = black {posargs:behave_html_formatter setup.py}
[testenv:clean]
description = Clean up bytecode and build artifacts
deps = pyclean
commands =
pyclean {toxinidir}
rm -rf .tox/ build/ dist/ behave_html_formatter.egg-info/
whitelist_externals =
rm
[testenv:flake8]
description = Static code analysis and code style
deps = flake8-black
commands = flake8 {posargs}
[testenv:pylint]
description = Check for errors and code smells
deps = pylint
commands = pylint --rcfile tox.ini {posargs:behave_html_formatter setup}
[testenv:readme]
description = Ensure README renders on PyPI
deps = twine
commands =
{envpython} setup.py -q sdist bdist_wheel
twine check dist/*
[gh-actions]
python =
2.7: py27
3.6: py36
3.7: py37
3.8: py38
3.9: py39
pypy2: pypy2
pypy3: pypy3
[behave.formatters]
html = behave_html_formatter:HTMLFormatter
[flake8]
exclude = .tox,build,dist,behave_html_formatter.egg-info
extend-ignore = E203 # see https://github.com/PyCQA/pycodestyle/issues/373
max-line-length = 88
[pylint]
[MASTER]
disable = attribute-defined-outside-init,invalid-name
output-format = colorized
[pytest]
addopts =
--color=yes
--strict
--verbose