Linting
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
"""Main Aperi'Solve module"""
|
||||||
|
|
||||||
# flake8: noqa: E203,E501,W503
|
# flake8: noqa: E203,E501,W503
|
||||||
# pylint: disable=C0413,W0718,R0903,R0801
|
# pylint: disable=C0413,W0718,R0903,R0801
|
||||||
# mypy: disable-error-code=unused-awaitable
|
# mypy: disable-error-code=unused-awaitable
|
||||||
|
|||||||
+2
-1
@@ -1,5 +1,5 @@
|
|||||||
# flake8: noqa: E203,E501,W503
|
# flake8: noqa: E203,E501,W503
|
||||||
# pylint: disable=C0413,W0718,R0903,R0801
|
# pylint: disable=C0413,W0718,R0903,R0801,R0915
|
||||||
# mypy: disable-error-code=unused-awaitable
|
# mypy: disable-error-code=unused-awaitable
|
||||||
"""Aperi'Solve Flask application."""
|
"""Aperi'Solve Flask application."""
|
||||||
|
|
||||||
@@ -264,6 +264,7 @@ def create_app() -> Flask:
|
|||||||
|
|
||||||
return app
|
return app
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
my_app = create_app()
|
my_app = create_app()
|
||||||
debug_mode = os.environ.get("FLASK_DEBUG", "0") == "1"
|
debug_mode = os.environ.get("FLASK_DEBUG", "0") == "1"
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ def fill_ihdr_db() -> None:
|
|||||||
print(f"Error filling IHDR table: {e}")
|
print(f"Error filling IHDR table: {e}")
|
||||||
db.session.rollback()
|
db.session.rollback()
|
||||||
|
|
||||||
|
|
||||||
def cleanup_old_entries() -> None:
|
def cleanup_old_entries() -> None:
|
||||||
"""
|
"""
|
||||||
Clean up old and incomplete entries from the database and file system.
|
Clean up old and incomplete entries from the database and file system.
|
||||||
|
|||||||
Reference in New Issue
Block a user