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 f336686..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 @@ -35,19 +34,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 +60,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: