forked from Tendrl/commons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (55 loc) · 1.68 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
# This is configuration file of tox, which run unit tests and other checks.
# See: https://tox.readthedocs.io/en/latest/index.html
[tox]
minversion = 2.0
# envlist = {py26,py27,py34}-master,pep8,docs
envlist = py27-master,pep8
# Test env defaults, runs unit tests via pytest.
# In this case, the "default" means that py34, py27 or other test enviroment
# without explicit definition would use this configuration.
[testenv]
# usedevelop = true
# Uncomment the previous line when you need to speedup unit tests setup
# during development, it would disable sdist build (it sets skipsdist = true)
# and install the project in devel mode (pip install -e .).
passenv =
cover: CI TRAVIS TRAVIS_*
deps =
pytest
mock
coverage
pytest-cov
cover: codecov
commands =
{envpython} -m pytest --cov=tendrl {posargs: tendrl/commons/tests}
cover: codecov
# Runs PEP8 checks on the source code via flake8 tool
[testenv:pep8]
skip_install = true
deps =
flake8
hacking
commands = flake8 tendrl
# Runs Unused code checks on the source code via vulture tool
[testenv:vulture]
skip_install = true
deps =
vulture
commands = vulture tendrl
# Runs check_commit_msg.py script (used by Travis CI, see .travis.yml)
[testenv:check_commit_msg]
skip_install = true
deps = requests
passenv = TRAVIS_COMMIT_MSG
commands = python check_commit_msg.py
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
# see: http://flake8.readthedocs.io/en/latest/config.html#settings
show-source = True
ignore = E123,E125
builtins = _, NS
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[pytest]
# pytest configuration
# see: http://docs.pytest.org/en/latest/customize.html#adding-default-options
# addopts = -v