Fix PEP8 E302 errors
Also add remaining skipped checks to HACKING Change-Id: I0c4333ce29597e0a8a233af17c15bed2b4d0711f
This commit is contained in:
parent
4d3d287dd7
commit
f3dbab4a6c
11
HACKING.rst
11
HACKING.rst
@ -5,6 +5,17 @@ OpenStack Style Commandments
|
|||||||
http://docs.openstack.org/developer/hacking/
|
http://docs.openstack.org/developer/hacking/
|
||||||
- Step 2: Read on
|
- Step 2: Read on
|
||||||
|
|
||||||
|
Deviations from Global Hacking
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
The following checks are specifically skipped in OpenStackClient::
|
||||||
|
|
||||||
|
* H305 - py2/py3 compatibility problems
|
||||||
|
* H307 - py2/py3 compatibility problems
|
||||||
|
* H402 - one line docstring ends in period
|
||||||
|
* H904 - backslash continuation line
|
||||||
|
|
||||||
|
|
||||||
General
|
General
|
||||||
-------
|
-------
|
||||||
- thou shalt not violate causality in our time cone, or else
|
- thou shalt not violate causality in our time cone, or else
|
||||||
|
@ -20,9 +20,9 @@ import logging
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode # noqa
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from urllib import urlencode
|
from urllib import urlencode # noqa
|
||||||
|
|
||||||
|
|
||||||
USER_AGENT = 'RAPI'
|
USER_AGENT = 'RAPI'
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
"""Object v1 API library"""
|
"""Object v1 API library"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse # noqa
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from urlparse import urlparse
|
from urlparse import urlparse # noqa
|
||||||
|
|
||||||
|
|
||||||
def list_containers(
|
def list_containers(
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
import six
|
import six
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse # noqa
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from urlparse import urlparse
|
from urlparse import urlparse # noqa
|
||||||
|
|
||||||
|
|
||||||
def list_objects(
|
def list_objects(
|
||||||
|
2
tox.ini
2
tox.ini
@ -29,6 +29,6 @@ commands=
|
|||||||
python setup.py build_sphinx
|
python setup.py build_sphinx
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = H302,H305,H307,H402,H904
|
ignore = H305,H307,H402,H904
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
|
||||||
|
Loading…
Reference in New Issue
Block a user