-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathtox.ini
More file actions
87 lines (80 loc) · 2.87 KB
/
Copy pathtox.ini
File metadata and controls
87 lines (80 loc) · 2.87 KB
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
81
82
83
84
85
86
87
[tox]
envlist = py310,py311,py312,py313,pep8
minversion = 2.3.2
skipsdist = False
[testenv]
basepython =
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
pep8: python3.10
setenv = VIRTUAL_ENV={envdir}
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true}
OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
PYTHONWARNINGS=default::DeprecationWarning
passenv =
TRACE_FAILONLY
GENERATE_HASHES
http_proxy
HTTP_PROXY
https_proxy
HTTPS_PROXY
no_proxy
NO_PROXY
usedevelop = True
install_command =
pip install {opts} {packages}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2026.1}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
allowlist_externals =
/bin/bash
sh
commands_pre =
/bin/bash -c 'touch {envdir}/lib/{basepython}/site-packages/neutron/tests/etc/policy.yaml'
commands = stestr run {posargs}
[testenv:hashtest]
setenv = VIRTUAL_ENV={envdir}
[testenv:pep8]
commands =
flake8
[testenv:cover]
basepython = python3
commands =
coverage erase
coverage run -m testtools.run
coverage report --include="*opflexagent*" --omit="*test*" --omit="*.tox*" -m
[testenv:venv]
commands = {posargs}
[flake8]
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E129 visually indented line with same indent as next logical line - REVISIT
# E402: Module level import not at top of file
# E741 ambiguous variable name - REVISIT
# H214: Use assertIn/NotIn instead of assertTrue/False for membership tests - REVISIT
# H216: Use assertIsInstance instead of assertTrue(isinstance(...)) - REVISIT
# H404 multi line docstring should start with a summary - REVISIT
# H405 multi line docstring summary not separated with an empty line
# H904: Delay string formatting (use logging formatting instead of % or f-strings)
# I202 Additional newline in a group of imports
# W504 line break after binary operator - REVISIT
# W605 invalid escape sequence - REVISIT
# N521: jsonutils must be used instead of json
# N529: Method's default argument shouldn't be mutable
# N530: Direct neutron imports not allowed
# N535: Usage of Python eventlet module not allowed
ignore = E126,E128,E129,E402,E741,H214,H216,H401,H404,H405,H904,I202,W504,W605,N521,N529,N530,N534,N535
# H106: Don’t put vim configuration in source files
# H203: Use assertIs(Not)None to check for None
# H204: Use assert(Not)Equal to check for equality
# H205: Use assert(Greater|Less)(Equal) for comparison
# H904: Delay string interpolations at logging calls
enable-extensions = H106,H203,H204,H205,H904
show-source = true
builtins = _
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*neutron/common*,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios
import-order-style = pep8