Merge "Fix h305 python import order issue"
This commit is contained in:
commit
136f6825c2
10
HACKING.rst
10
HACKING.rst
@ -1,4 +1,8 @@
|
|||||||
plasma Style Commandments
|
Valence Style Commandments
|
||||||
===============================================
|
===========================
|
||||||
|
|
||||||
Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/
|
Read the OpenStack Style Commandments
|
||||||
|
http://docs.openstack.org/developer/hacking/
|
||||||
|
|
||||||
|
- [H305] Organize your imports according to 'Import order template' mentioned
|
||||||
|
in http://docs.openstack.org/developer/hacking/#import-order-template
|
||||||
|
@ -10,9 +10,11 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from flask import Flask
|
|
||||||
import logging
|
import logging
|
||||||
from logging.handlers import RotatingFileHandler
|
from logging.handlers import RotatingFileHandler
|
||||||
|
|
||||||
|
from flask import Flask
|
||||||
|
|
||||||
from valence import config as cfg
|
from valence import config as cfg
|
||||||
|
|
||||||
_app = None
|
_app = None
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
|
|
||||||
from flask import request
|
from flask import request
|
||||||
|
|
||||||
from valence.api import base
|
from valence.api import base
|
||||||
from valence.api import types
|
from valence.api import types
|
||||||
|
|
||||||
|
@ -12,11 +12,13 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import json
|
||||||
|
|
||||||
from flask import abort
|
from flask import abort
|
||||||
from flask import request
|
from flask import request
|
||||||
from flask import Response
|
from flask import Response
|
||||||
from flask_restful import Resource
|
from flask_restful import Resource
|
||||||
import json
|
|
||||||
from valence.api import base
|
from valence.api import base
|
||||||
from valence.api import link
|
from valence.api import link
|
||||||
from valence.api import types
|
from valence.api import types
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
from flask_cors import CORS
|
from flask_cors import CORS
|
||||||
from flask_restful import Api
|
from flask_restful import Api
|
||||||
|
|
||||||
from valence.api import app as flaskapp
|
from valence.api import app as flaskapp
|
||||||
from valence.api.root import PODMProxy
|
from valence.api.root import PODMProxy
|
||||||
from valence.api.root import Root
|
from valence.api.root import Root
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -12,9 +12,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
from flask import request
|
from flask import request
|
||||||
from flask_restful import Resource
|
from flask_restful import Resource
|
||||||
import logging
|
|
||||||
from valence.flavor import flavor
|
from valence.flavor import flavor
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -12,11 +12,12 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
from flask import request
|
from flask import request
|
||||||
from flask_restful import abort
|
from flask_restful import abort
|
||||||
from flask_restful import Resource
|
from flask_restful import Resource
|
||||||
import logging
|
|
||||||
from valence.redfish import redfish as rfs
|
from valence.redfish import redfish as rfs
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -12,9 +12,10 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
from flask_restful import abort
|
from flask_restful import abort
|
||||||
from flask_restful import Resource
|
from flask_restful import Resource
|
||||||
import logging
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -12,10 +12,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
from flask import request
|
from flask import request
|
||||||
from flask_restful import Resource
|
from flask_restful import Resource
|
||||||
import logging
|
|
||||||
from valence.redfish import redfish as rfs
|
from valence.redfish import redfish as rfs
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -12,10 +12,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import json
|
||||||
|
|
||||||
from flask import request
|
from flask import request
|
||||||
from flask_restful import Resource
|
from flask_restful import Resource
|
||||||
import json
|
|
||||||
from valence.api import base
|
from valence.api import base
|
||||||
from valence.api import link
|
from valence.api import link
|
||||||
from valence.api import types
|
from valence.api import types
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from valence.redfish import redfish as rfs
|
from valence.redfish import redfish as rfs
|
||||||
|
|
||||||
FLAVOR_PLUGIN_PATH = os.path.dirname(os.path.abspath(__file__)) + '/plugins'
|
FLAVOR_PLUGIN_PATH = os.path.dirname(os.path.abspath(__file__)) + '/plugins'
|
||||||
|
@ -16,8 +16,10 @@
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from requests.auth import HTTPBasicAuth
|
from requests.auth import HTTPBasicAuth
|
||||||
|
|
||||||
from valence import config as cfg
|
from valence import config as cfg
|
||||||
from valence.redfish import tree
|
from valence.redfish import tree
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user