Skip to content
Snippets Groups Projects
Commit 44360777 authored by Ian Galpin's avatar Ian Galpin
Browse files

Applied isort recommendations

parent b298e2ee
Branches
Tags
No related merge requests found
...@@ -7,8 +7,7 @@ import os ...@@ -7,8 +7,7 @@ import os
from flask import Flask from flask import Flask
from flask_cors import CORS # for debugging from flask_cors import CORS # for debugging
from compendium_v2 import environment from compendium_v2 import config, environment
from compendium_v2 import config
def create_app(): def create_app():
......
...@@ -2,7 +2,6 @@ import json ...@@ -2,7 +2,6 @@ import json
import logging.config import logging.config
import os import os
LOGGING_DEFAULT_CONFIG = { LOGGING_DEFAULT_CONFIG = {
'version': 1, 'version': 1,
'disable_existing_loggers': False, 'disable_existing_loggers': False,
......
...@@ -16,6 +16,7 @@ import random ...@@ -16,6 +16,7 @@ import random
import time import time
from flask import Blueprint, jsonify from flask import Blueprint, jsonify
from compendium_v2.routes import common from compendium_v2.routes import common
routes = Blueprint("compendium-v2-api", __name__) routes = Blueprint("compendium-v2-api", __name__)
......
...@@ -3,7 +3,8 @@ Utilities used by multiple route blueprints. ...@@ -3,7 +3,8 @@ Utilities used by multiple route blueprints.
""" """
import functools import functools
import logging import logging
from flask import request, Response
from flask import Response, request
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
_DECODE_TYPE_XML = 'xml' _DECODE_TYPE_XML = 'xml'
......
...@@ -11,8 +11,8 @@ Default Endpoints ...@@ -11,8 +11,8 @@ Default Endpoints
""" """
import pkg_resources import pkg_resources
from flask import Blueprint, jsonify, render_template from flask import Blueprint, jsonify, render_template
from compendium_v2.routes import common from compendium_v2.routes import common
routes = Blueprint("compendium-v2-default", __name__) routes = Blueprint("compendium-v2-default", __name__)
......
...@@ -15,9 +15,10 @@ These endpoints are intended for getting service matrix. ...@@ -15,9 +15,10 @@ These endpoints are intended for getting service matrix.
import json import json
import logging import logging
import os import os
from flask import Blueprint from flask import Blueprint
from compendium_v2.routes import common
from compendium_v2.routes import common
SERVICE_MATRIX_SCHEMA = { SERVICE_MATRIX_SCHEMA = {
'$schema': 'http://json-schema.org/draft-07/schema#', '$schema': 'http://json-schema.org/draft-07/schema#',
......
...@@ -9,6 +9,7 @@ exclude = ./.tox,./webapp ...@@ -9,6 +9,7 @@ exclude = ./.tox,./webapp
deps = deps =
coverage coverage
flake8 flake8
isort
-r requirements.txt -r requirements.txt
commands = commands =
...@@ -18,5 +19,6 @@ commands = ...@@ -18,5 +19,6 @@ commands =
coverage html coverage html
coverage report --fail-under 85 coverage report --fail-under 85
flake8 flake8
isort -c --df compendium_v2
sphinx-build -M html docs/source docs/build sphinx-build -M html docs/source docs/build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment