"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) INI source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "tox.ini":
11.0.0_vs_11.0.1.
1 [tox]
2 minversion = 2.0
3 skipsdist = True
4 envlist = py3,pep8
5
6 [testenv]
7 basepython = python3
8 setenv = VIRTUAL_ENV={envdir}
9 usedevelop = True
10 whitelist_externals = find
11 deps =
12 -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/victoria}
13 -r{toxinidir}/requirements.txt
14 -r{toxinidir}/test-requirements.txt
15 commands =
16 find . -type f -name "*.py[c|o]" -delete
17 stestr run {posargs}
18 stestr slowest
19
20 [testenv:releasenotes]
21 deps =
22 -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/victoria}
23 -r{toxinidir}/doc/requirements.txt
24 commands =
25 rm -rf releasenotes/build
26 sphinx-build -a -E -W -d releasenotes/build/doctrees \
27 -b html releasenotes/source releasenotes/build/html
28 whitelist_externals = rm
29
30 [testenv:debug]
31 commands = oslo_debug_helper {posargs}
32
33 [testenv:pep8]
34 # Let's gate pep8 under py3 by default because the py3 checks are stricter.
35 commands =
36 flake8 {posargs}
37 # Run bashate during pep8 runs to ensure violations are caught by
38 # the check and gate queues.
39 bashate -i E006,E042,E043 \
40 tools/enable-pre-commit-hook.sh \
41 contrib/ci/pre_test_hook.sh \
42 contrib/ci/post_test_hook.sh \
43 devstack/plugin.sh \
44 devstack/upgrade/from-mitaka/upgrade-manila \
45 devstack/upgrade/resources.sh \
46 devstack/upgrade/shutdown.sh \
47 devstack/upgrade/upgrade.sh \
48 tools/cover.sh \
49 tools/check_logging.sh \
50 tools/coding-checks.sh
51 {toxinidir}/tools/check_exec.py {toxinidir}/manila
52 {toxinidir}/tools/check_logging.sh {toxinidir}/manila
53
54 [testenv:genconfig]
55 whitelist_externals = bash
56 commands =
57 oslo-config-generator --config-file etc/oslo-config-generator/manila.conf
58
59 [testenv:genpolicy]
60 commands = oslopolicy-sample-generator --config-file=etc/manila/manila-policy-generator.conf
61
62 [testenv:venv]
63 commands = {posargs}
64
65 [testenv:docs]
66 deps =
67 -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/victoria}
68 -r{toxinidir}/doc/requirements.txt
69 commands =
70 rm -rf doc/build
71 sphinx-build -W -b html doc/source doc/build/html
72 # Ignore D001 since we allow lines in excess of 79 characters.
73 doc8 --ignore D001 --ignore-path .tox --ignore-path doc/build --ignore-path manila.egg-info -e .txt -e .rst -e .inc
74 whitelist_externals = rm
75
76 [testenv:pdf-docs]
77 deps = {[testenv:docs]deps}
78 whitelist_externals =
79 make
80 commands =
81 sphinx-build -W -b latex doc/source doc/build/pdf
82 make -C doc/build/pdf
83
84 [testenv:bindep]
85 # Do not install any requirements. We want this to be fast and work even if
86 # system dependencies are missing, since it's used to tell you what system
87 # dependencies are missing! This also means that bindep must be installed
88 # separately, outside of the requirements files, and develop mode disabled
89 # explicitly to avoid unnecessarily installing the checked-out repo too (this
90 # further relies on "tox.skipsdist = True" above).
91 deps = bindep
92 commands = bindep test
93 usedevelop = False
94
95 [testenv:cover]
96 setenv =
97 {[testenv]setenv}
98 PYTHON=coverage run --source manila --parallel-mode
99 commands =
100 {toxinidir}/tools/cover.sh {posargs}
101
102 [testenv:fast8]
103 # Let's run fast8 under py3 by default because the py3 checks are stricter.
104 commands =
105 {toxinidir}/tools/fast8.sh
106
107 [testenv:pylint]
108 deps = -r{toxinidir}/requirements.txt
109 -r{toxinidir}/test-requirements.txt
110 pylint==2.3.1
111 whitelist_externals = bash
112 commands = bash ./tools/coding-checks.sh --pylint {posargs}
113
114 [testenv:api-ref]
115 # This environment is called from CI scripts to test and publish
116 # the API Ref to docs.openstack.org.
117 deps = {[testenv:docs]deps}
118 whitelist_externals = rm
119 commands =
120 rm -rf api-ref/build
121 python {toxinidir}/tools/validate-json-files.py {toxinidir}/api-ref/source/samples/
122 sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
123
124 [testenv:dbrevision]
125 deps = -r{toxinidir}/requirements.txt
126 commands = alembic -c manila/db/migrations/alembic.ini revision -m ""{posargs}
127
128 [flake8]
129 # Following checks are ignored on purpose:
130
131 # Following checks should be evaluated and fixed:
132 # E123 closing bracket does not match indentation of opening bracket's line
133 # E402 module level import not at top of file
134 # W503 line break before binary operator
135 # W504 line break after binary operator
136 ignore = E123,E402,W503,W504
137 builtins = _
138 # [H106] Don't put vim configuration in source files.
139 # [H203] Use assertIs(Not)None to check for None.
140 # [H904] Use ',' instead of '%', String interpolation should be delayed to be handled by the logging code,
141 # rather than being done at the point of the logging call..
142 enable-extensions = H106,H203,H904
143 exclude = .git,.tox,.testrepository,.venv,build,cover,dist,doc,*egg,api-ref/build,*/source/conf.py
144
145 [hacking]
146 import_exceptions =
147 manila.i18n
148
149 [flake8:local-plugins]
150 extension =
151 M310 = checks:CheckLoggingFormatArgs
152 M313 = checks:validate_assertTrue
153 M323 = checks:check_explicit_underscore_import
154 M325 = checks:CheckForStrUnicodeExc
155 M326 = checks:CheckForTransAdd
156 M333 = checks:check_oslo_namespace_imports
157 M336 = checks:dict_constructor_with_list_copy
158 M337 = checks:no_xrange
159 M338 = checks:no_log_warn_check
160 M339 = checks:no_third_party_mock
161 M354 = checks:check_uuid4
162 M359 = checks:no_translate_logs
163 paths = ./manila/tests/hacking
164
165 [testenv:lower-constraints]
166 deps =
167 -c{toxinidir}/lower-constraints.txt
168 -r{toxinidir}/test-requirements.txt
169 -r{toxinidir}/requirements.txt