From e6b8f457889eaa7c064e1ddb8da9b1393d47a52f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 23:10:54 +0545 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#1995) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.8.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.2...v0.8.3) - [github.com/astral-sh/uv-pre-commit: 0.5.7 → 0.5.9](https://github.com/astral-sh/uv-pre-commit/compare/0.5.7...0.5.9) - [github.com/sqlfluff/sqlfluff: 3.2.5 → 3.3.0](https://github.com/sqlfluff/sqlfluff/compare/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> --- .pre-commit-config.yaml | 6 +++--- .../archived/2024-08-09/002-add-xforms-table.sql | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bbc25c9192..075b900299 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 @@ -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$ diff --git a/src/backend/migrations/archived/2024-08-09/002-add-xforms-table.sql b/src/backend/migrations/archived/2024-08-09/002-add-xforms-table.sql index ccb41dfa2e..fe11ecf7f3 100644 --- a/src/backend/migrations/archived/2024-08-09/002-add-xforms-table.sql +++ b/src/backend/migrations/archived/2024-08-09/002-add-xforms-table.sql @@ -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 );