Browse Source

Merge "add local tox targets for pep8 and py3"

Zuul 5 months ago
parent
commit
022204f518
1 changed files with 19 additions and 0 deletions
  1. 19
    0
      tox.ini

+ 19
- 0
tox.ini View File

@@ -145,3 +145,22 @@ deps =
145 145
   -c{toxinidir}/lower-constraints.txt
146 146
   -r{toxinidir}/test-requirements.txt
147 147
   -r{toxinidir}/requirements.txt
148
+
149
+[testenv:dev]
150
+# run locally (not in the gate) using editable mode
151
+# https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs
152
+commands =
153
+    pip install -q -e "git+https://git.openstack.org/openstack/neutron#egg=neutron"
154
+
155
+[testenv:py3-dev]
156
+basepython = python3
157
+commands =
158
+    {[testenv:dev]commands}
159
+    {[testenv]commands}
160
+
161
+[testenv:pep8-dev]
162
+deps =
163
+    {[testenv]deps}
164
+commands =
165
+    {[testenv:dev]commands}
166
+    {[testenv:pep8]commands}

Loading…
Cancel
Save