-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
54 lines (46 loc) · 1.6 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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py{36,37,38,py3}-test, flake8
skip_missing_interpreters=True
skipsdist = true
toxworkdir = .tox/{env:BITNESS:64}
[testenv]
description =
test: Run tests
flake8: Run static analysis
basepython =
py36: python3.6
py37: python3.7
py38: python3.8
pypy3: pypy3
flake8: python
commands =
test: python --version
test: python -c "import platform; print(platform.architecture())"
test: pytest --junit-xml=junit-{envname}.xml {posargs}
flake8: python --version
flake8: python -c "import platform; print(platform.architecture())"
flake8: flake8 {posargs}
deps =
test: pytest
test: pytest-cov
test: hightime
test: six
flake8: flake8
[flake8]
show_source = true
max_line_length = 120
exclude = build,docs,tests,.tox,__pycache__
# H404: Multi line docstrings should start without a leading new line.
# H405: Multi line docstrings should start with a one line summary followed by an empty line.
# H903: Windows style line endings not allowed in code
# E501: Line length
# W391: Blank line at end of file
# W503: Line break occurred before a binary operator (not PEP8 compatible)
# W504: Line break occurred after a binary operator (not PEP8 compatible)
ignore = H404,H405,H903,E501,W391,W503,W504
[pytest]
addopts = --cov nisyscfg --cov-report term --cov-report xml --cov-report html -svv --ignore=setup.py --strict