Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8 Change-Id: I379e5684ada1b0c961260f2017543479080f8c23
This commit is contained in:
parent
51de6802f1
commit
3815e94721
|
@ -12,7 +12,7 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from ansible.module_utils.basic import * # noqa
|
from ansible.module_utils.basic import AnsibleModule # noqa
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from ansible.module_utils.basic import * # noqa
|
from ansible.module_utils.basic import AnsibleModule # noqa
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from ansible.module_utils.basic import * # noqa
|
from ansible.module_utils.basic import AnsibleModule # noqa
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from ansible.module_utils.basic import * # noqa
|
from ansible.module_utils.basic import AnsibleModule # noqa
|
||||||
|
|
||||||
STRESSORS_MAP = {
|
STRESSORS_MAP = {
|
||||||
'cpu': '--cpu 0',
|
'cpu': '--cpu 0',
|
||||||
|
|
|
@ -20,5 +20,5 @@ def public(func):
|
||||||
|
|
||||||
|
|
||||||
def is_public(obj):
|
def is_public(obj):
|
||||||
return ((inspect.isfunction(obj) or inspect.ismethod(obj))
|
return ((inspect.isfunction(obj) or inspect.ismethod(obj)) and
|
||||||
and hasattr(obj, '__public__'))
|
hasattr(obj, '__public__'))
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# of appearance. Changing the order has an impact on the overall integration
|
# of appearance. Changing the order has an impact on the overall integration
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
|
|
||||||
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
hacking>=1.1.0,<1.2.0 # Apache-2.0
|
||||||
pytest<=3.0.2,>=2.7 # MIT
|
pytest<=3.0.2,>=2.7 # MIT
|
||||||
pytest-cov<=2.3.1,>=2.2.1 # MIT
|
pytest-cov<=2.3.1,>=2.2.1 # MIT
|
||||||
pytest-html<=1.10.0,>=1.10.0 # Mozilla Public License 2.0 (MPL 2.0)
|
pytest-html<=1.10.0,>=1.10.0 # Mozilla Public License 2.0 (MPL 2.0)
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -99,6 +99,7 @@ commands = {[testenv:debug]commands}
|
||||||
[flake8]
|
[flake8]
|
||||||
# E123 skipped because it is ignored by default in the default pep8.
|
# E123 skipped because it is ignored by default in the default pep8.
|
||||||
# E125 skipped until https://github.com/jcrocholl/pep8/issues/126 is resolved.
|
# E125 skipped until https://github.com/jcrocholl/pep8/issues/126 is resolved.
|
||||||
ignore = E123,E125
|
# E731 skipped as assign a lambda expression
|
||||||
|
ignore = E123,E125,E731
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||||
|
|
Loading…
Reference in New Issue