diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed86d7b..1515eda 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.6.7 + rev: v0.6.9 hooks: # Run the linter. - id: ruff diff --git a/README.md b/README.md index 7f44db0..e67c563 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ It is possible to execute tests of [Flask] microservice created with [pytest] fr ~/app# make test ... ============================= test session starts ============================== -platform linux -- Python 3.12.5, pytest-8.3.2, pluggy-1.5.0 +platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 rootdir: /app/tests collected 2 items diff --git a/app/app/__init__.py b/app/app/__init__.py index 7c3f050..343e427 100644 --- a/app/app/__init__.py +++ b/app/app/__init__.py @@ -9,6 +9,7 @@ from config import config from flask import Flask, render_template +from .api import api from .model import init_model @@ -21,8 +22,6 @@ def create_app(config_name="default"): with app.app_context(): app.config["model"] = init_model() - from .api import api - app.register_blueprint(api, url_prefix="/api") @app.route("/dlflask", methods=["GET"]) diff --git a/requirements.txt b/requirements.txt index 600c918..5cb011b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,10 +2,10 @@ Flask==3.0.3 gunicorn==23.0.0 numpy==1.26.4 Pillow==10.4.0 -pre-commit==3.8.0 +pre-commit==4.0.0 pur==7.3.2 pytest==8.3.3 requests==2.32.3 -ruff==0.6.7 +ruff==0.6.9 scikit-image==0.24.0 tensorflow==2.17.0