Skip to content

Commit

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

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.8.3](astral-sh/ruff-pre-commit@v0.8.2...v0.8.3)
- [github.com/astral-sh/uv-pre-commit: 0.5.7 → 0.5.9](astral-sh/uv-pre-commit@0.5.7...0.5.9)
- [github.com/sqlfluff/sqlfluff: 3.2.5 → 3.3.0](sqlfluff/sqlfluff@3.2.5...3.3.0)

* [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 Dec 16, 2024
1 parent d027fb8 commit e6b8f45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
# Lint / autoformat: Python code
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.8.2"
rev: "v0.8.3"
hooks:
# Run the linter
- id: ruff
Expand All @@ -21,7 +21,7 @@ repos:

# Deps: ensure Python uv lockfile is up to date
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.7
rev: 0.5.9
hooks:
- id: uv-lock
files: src/backend/pyproject.toml
Expand Down Expand Up @@ -81,7 +81,7 @@ repos:

# Lint & Autoformat: SQL
- repo: https://github.com/sqlfluff/sqlfluff
rev: 3.2.5
rev: 3.3.0
hooks:
- id: sqlfluff-lint
files: ^src/backend/migrations/.*\.sql$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,19 @@ SET
FROM public.tasks
WHERE
NOT EXISTS (
SELECT 1 FROM public.projects WHERE odk_token IS NOT NULL
SELECT 1 FROM public.projects
WHERE odk_token IS NOT NULL
)
LIMIT 1
)
WHERE id = (
SELECT id
FROM public.projects
WHERE NOT EXISTS (SELECT 1 FROM public.projects WHERE odk_token IS NOT NULL)
WHERE
NOT EXISTS (
SELECT 1 FROM public.projects
WHERE odk_token IS NOT NULL
)
LIMIT 1
);

Expand Down

0 comments on commit e6b8f45

Please sign in to comment.