Skip to content

Commit

Permalink
Ruff formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcUsher committed Nov 14, 2024
1 parent 4f83e94 commit 7ab702e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
5 changes: 2 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from fsd_utils.healthchecks.checkers import DbChecker, FlaskRunningChecker
from fsd_utils.healthchecks.healthcheck import Healthcheck
from fsd_utils.logging import logging

from openapi.utils import get_bundled_specs


Expand Down Expand Up @@ -40,9 +41,7 @@ def create_app() -> FlaskApp:
@flask_app.errorhandler(404)
def not_found(error):
flask_app.logger.warning("requested URL was not found on the server")
return jsonify(
{"code": 404, "message": "Requested URL was not found on the server"}
), 404
return jsonify({"code": 404, "message": "Requested URL was not found on the server"}), 404

return connexion_app

Expand Down
3 changes: 2 additions & 1 deletion config/envs/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
import logging
from os import environ

from config.envs.default import DefaultConfig as Config
from fsd_utils import configclass

from config.envs.default import DefaultConfig as Config


@configclass
class DevelopmentConfig(Config):
Expand Down
3 changes: 2 additions & 1 deletion config/envs/unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
import logging
from os import environ

from config.envs.default import DefaultConfig as Config
from fsd_utils import configclass

from config.envs.default import DefaultConfig as Config


@configclass
class UnitTestConfig(Config):
Expand Down
3 changes: 1 addition & 2 deletions openapi/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from typing import Any
from typing import Dict
from typing import Any, Dict

import prance

Expand Down
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"""

import pytest
from app import create_app
from flask import Flask

from app import create_app


@pytest.fixture(scope="session")
def app() -> Flask:
Expand Down

0 comments on commit 7ab702e

Please sign in to comment.