From 58013a503d0e399c96705096ac61546c36f6edcb Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 25 Jul 2026 11:56:59 +0000 Subject: [PATCH 1/2] Add ty pre-commit hook scoped to swvo and dependabot for pre-commit hooks - Add astral-sh/ty-pre-commit, restricted to files under swvo/ (ty's own src.include/exclude config in pyproject.toml already scopes the check to swvo and excludes tests). - Add .github/dependabot.yml with the pre-commit ecosystem so ruff and ty hook versions get automatic update PRs. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01X77XmBUgG95AKHDFZc5qnC --- .github/dependabot.yml | 11 +++++++++++ .pre-commit-config.yaml | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b45a597 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: 2026 GFZ Helmholtz Centre for Geosciences +# SPDX-FileContributor: Sahil Jhawar +# +# SPDX-License-Identifier: Apache-2.0 + +version: 2 +updates: + - package-ecosystem: "pre-commit" + directory: "/" + schedule: + interval: "weekly" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 836357d..2a41418 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,3 +13,9 @@ repos: args: [--fix] # Run the formatter. - id: ruff-format + - repo: https://github.com/astral-sh/ty-pre-commit + # ty version. + rev: v0.0.63 + hooks: + - id: ty + files: ^swvo/ From ea08e252b87d7edc4ab9baca512b1b0392976eb4 Mon Sep 17 00:00:00 2001 From: Sahil Jhawar <55475299+sahiljhawar@users.noreply.github.com> Date: Sat, 25 Jul 2026 14:02:10 +0200 Subject: [PATCH 2/2] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2a41418..5c408b0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,6 @@ repos: # Run the formatter. - id: ruff-format - repo: https://github.com/astral-sh/ty-pre-commit - # ty version. rev: v0.0.63 hooks: - id: ty