File: tox.ini

package info (click to toggle)
networking-arista 2018.1.0%2B2018.08.21.git.3adf6272bd-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 764 kB
  • sloc: python: 8,141; sh: 78; makefile: 30
file content (80 lines) | stat: -rw-r--r-- 1,877 bytes parent folder | download
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
76
77
78
79
80
[tox]
envlist = py27-dev,py35-dev,pep8-dev
minversion = 1.6
skipsdist = True

[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
         PYTHONWARNINGS=default::DeprecationWarning
deps =
       -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
       -r{toxinidir}/test-requirements.txt
       -r{toxinidir}/requirements.txt
whitelist_externals =
  find
commands =
  stestr run {posargs}

[testenv:dev]
# run locally (not in the gate) using editable mode
# https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs
# note that order is important to ensure dependencies don't override
commands =
    pip install -q -e "git+https://git.openstack.org/openstack/neutron#egg=neutron"

[testenv:py27-dev]
commands =
  {[testenv:dev]commands}
  pip freeze
  stestr run {posargs}

[testenv:py3-dev]
basepython = python3
commands =
  {[testenv:dev]commands}
  pip freeze
  stestr run {posargs}

[testenv:pep8]
basepython = python3
commands =
  flake8
  neutron-db-manage --subproject networking-arista check_migration

[testenv:pep8-dev]
basepython = python3
commands =
  {[testenv:dev]commands}
  pip freeze
  flake8
  neutron-db-manage --subproject networking-arista check_migration

[testenv:venv]
basepython = python3
commands = {posargs}

[testenv:cover]
basepython = python3
commands =
  find networking_arista -type f -name "*.pyc" -delete
  stestr run {posargs}
  coverage combine
  coverage html -d cover
  coverage xml -o cover/coverage.xml

[testenv:docs]
basepython = python3
commands = python setup.py build_sphinx

[flake8]
# H803 skipped on purpose per list discussion.
# E123, E125 skipped as they are invalid PEP-8.

show-source = True
ignore = E123,E125,H803
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build

[hacking]
import_exceptions = networking_arista._i18n