Skip to content

Commit ffc9768

Browse files
committed
refactor(api): make ruff happy
1 parent 9725daf commit ffc9768

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

api/src/api/app/configs/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For local development, use a .env file to set
77
environment variables.
88
"""
9+
910
from environs import Env
1011

1112
env = Env()

api/src/api/app/vendors/rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def response(status_code, message=None, data=None):
5555

5656
if status_code in success_status:
5757
count = 0
58-
if type(data) is list:
58+
if isinstance(data, list):
5959
count = len(data)
60-
if type(data) is dict:
60+
if isinstance(data, dict):
6161
count = 1
6262
status["count"] = count
6363
status["data"] = data if data else None

api/src/api/autoapp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""Create an application instance."""
3+
34
from app import create_app
45

56
app = create_app()

0 commit comments

Comments
 (0)