Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#437)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/uv-pre-commit: 0.5.14 → 0.5.18](astral-sh/uv-pre-commit@0.5.14...0.5.18)
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.1](astral-sh/ruff-pre-commit@v0.8.6...v0.9.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 15, 2025
1 parent d8736bd commit 1e4c0ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/backend/app/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/backend/app/users/user_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e4c0ee

Please sign in to comment.