diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 573b2384..76ada1fb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -79,7 +79,7 @@ repos: # Deps: ensure Python uv lockfile is up to date - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.5.14 + rev: 0.5.18 hooks: - id: uv-lock files: src/backend/pyproject.toml @@ -95,7 +95,7 @@ repos: # Lint / autoformat: Python code - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.8.6" + rev: "v0.9.1" hooks: # Run the linter - id: ruff diff --git a/src/backend/app/s3.py b/src/backend/app/s3.py index dbcec789..2293e960 100644 --- a/src/backend/app/s3.py +++ b/src/backend/app/s3.py @@ -33,8 +33,7 @@ def is_connection_secure(minio_url: str): else: err = ( - "The S3_ENDPOINT is set incorrectly. " - "It must start with http:// or https://" + "The S3_ENDPOINT is set incorrectly. It must start with http:// or https://" ) log.error(err) raise ValueError(err) diff --git a/src/backend/app/users/user_schemas.py b/src/backend/app/users/user_schemas.py index a46eb24b..35fe068b 100644 --- a/src/backend/app/users/user_schemas.py +++ b/src/backend/app/users/user_schemas.py @@ -303,7 +303,7 @@ async def update(db: Connection, user_id: int, profile_update: UserProfileUpdate ) ON CONFLICT (user_id) DO UPDATE SET - {', '.join(f"{key} = EXCLUDED.{key}" for key in model_data.keys())}; + {", ".join(f"{key} = EXCLUDED.{key}" for key in model_data.keys())}; """ # Prepare password update query if a new password is provided