Skip to content

Commit 5310d04

Browse files
committed
Fixed flake8 complaints
1 parent 3a2f786 commit 5310d04

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

mrmat_python_api_flask/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import pkg_resources
2929
from logging.config import dictConfig
3030

31-
from flask import Flask, g
31+
from flask import Flask
3232
from flask_sqlalchemy import SQLAlchemy
3333
from flask_migrate import Migrate
3434
from flask_marshmallow import Marshmallow

mrmat_python_api_flask/apis/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@
1919
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
22-

mrmat_python_api_flask/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
import cli_ui
3030
from halo import Halo
3131
import requests
32-
import oauthlib.oauth2
33-
import requests_oauthlib
3432

3533
from mrmat_python_api_flask import __version__
3634

@@ -56,7 +54,7 @@ def oidc_discovery(config: Dict) -> Dict:
5654
try:
5755
data = resp.json()
5856
except ValueError:
59-
raise ClientException(exit_code=1, msg=f'Unable to parse response from discovery endpoint into JSON')
57+
raise ClientException(exit_code=1, msg='Unable to parse response from discovery endpoint into JSON')
6058
return data
6159

6260

@@ -70,7 +68,7 @@ def oidc_device_auth(config: Dict, discovery: Dict) -> Dict:
7068
try:
7169
data = resp.json()
7270
except ValueError:
73-
raise ClientException(exit_code=1, msg=f'Unable to parse response from device endpoint into JSON')
71+
raise ClientException(exit_code=1, msg='Unable to parse response from device endpoint into JSON')
7472
return data
7573

7674

tests/test_greeting_v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import pytest
2424

25-
from typing import Optional,Dict
25+
from typing import Optional, Dict
2626
from flask import Response
2727
from flask.testing import FlaskClient
2828

tests/test_resource_v1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,3 @@ def test_get_one(client: FlaskClient):
9797
assert resp_body['id'] == 1
9898
assert resp_body['owner'] == 'MrMat'
9999
assert resp_body['name'] == 'Test Resource'
100-

0 commit comments

Comments
 (0)