From 5b47887ef1fff68d17406e5544be41f687553206 Mon Sep 17 00:00:00 2001 From: Bill Date: Sat, 2 May 2026 17:59:43 +0100 Subject: [PATCH 1/2] chore: update pre-commit hooks --- .pre-commit-config.yaml | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f336686..ed7e2a7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,19 +35,19 @@ repos: - id: check-pre-commit-ci-config - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.11.3 + rev: 0.11.8 hooks: - id: uv-lock - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.9 + rev: v0.15.12 hooks: - id: ruff-check args: ["--fix"] - id: ruff-format - repo: https://github.com/billwallis/bills-hooks - rev: v0.0.13 + rev: v0.0.14 hooks: - id: banned-python-code - id: check-no-commit-comment @@ -61,22 +61,30 @@ repos: - repo: local hooks: - - <<: &check-jsonschema-config - entry: check-jsonschema - pass_filenames: true - language: python - additional_dependencies: ["check-jsonschema==0.37.1"] - # This calls a remote URL, so run on pre-push to avoid slowing down commits - stages: ["pre-push"] - id: check-pyproject-schema + - id: check-pyproject-schema name: Validate pyproject.toml schema - files: pyproject.toml + entry: check-jsonschema args: ["--schemafile", "https://json.schemastore.org/pyproject.json"] - - <<: *check-jsonschema-config - id: check-pre-commit-hooks-schema + files: pyproject.toml + pass_filenames: true + language: python + additional_dependencies: ["check-jsonschema==0.37.1"] + # This calls a remote URL, so run on pre-push to avoid slowing down commits + stages: ["pre-push"] + + # Keep this one separate to make it easier to delete in downstream repos + - repo: local + hooks: + - id: check-pre-commit-hooks-schema name: Validate .pre-commit-hooks.yaml schema - files: .pre-commit-hooks.yaml + entry: check-jsonschema args: ["--schemafile", "https://json.schemastore.org/pre-commit-hooks.json"] + files: .pre-commit-hooks.yaml + pass_filenames: true + language: python + additional_dependencies: ["check-jsonschema==0.37.1"] + # This calls a remote URL, so run on pre-push to avoid slowing down commits + stages: ["pre-push"] - repo: local hooks: From c75bf700030dd0243d1f13d38f86764c16f60180 Mon Sep 17 00:00:00 2001 From: Bill Date: Sun, 3 May 2026 08:50:21 +0100 Subject: [PATCH 2/2] chore: remove devcontainer --- .devcontainer/Dockerfile | 16 ---------------- .devcontainer/devcontainer.json | 11 ----------- .pre-commit-config.yaml | 1 - 3 files changed, 28 deletions(-) delete mode 100644 .devcontainer/Dockerfile delete mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 2eefbdf..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -FROM ubuntu:latest - -RUN : \ - && apt-get update \ - && apt-get install -y --no-install-recommends \ - ca-certificates \ - curl \ - unzip \ - procps \ - git \ - && curl -LsSf https://astral.sh/uv/install.sh | sh \ - && /root/.local/bin/uv tool install poethepoet \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* \ - -CMD ["/usr/bin/env bash"] diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index 98147a5..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,11 +0,0 @@ -// yaml-language-server: $schema=https://json.schemastore.org/devcontainer.json - -// https://aka.ms/devcontainer.json -{ - // image: "mcr.microsoft.com/devcontainers/python:1-3.12", - build: { - dockerfile: "Dockerfile", - context: ".." - }, - remoteUser: "root", -} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed7e2a7..8ad3739 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,6 @@ repos: - id: mixed-line-ending - id: check-added-large-files - id: check-json - exclude: "devcontainer.json" - id: check-yaml - id: check-toml - id: check-ast