From f454c2c1dea4e67bf663eb71b7acff7798abf474 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 20:55:37 +0000 Subject: [PATCH 1/2] ci: add pre-commit configuration with linters, tests, and conventional commits Co-authored-by: deviantintegral <255023+deviantintegral@users.noreply.github.com> --- .pre-commit-config.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..a5b7b3f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,30 @@ +repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.15.2 + hooks: + - id: ruff-check + args: [--fix] + - id: ruff-format + + - repo: https://github.com/compilerla/conventional-pre-commit + rev: v4.4.0 + hooks: + - id: conventional-pre-commit + stages: [commit-msg] + + - repo: local + hooks: + - id: mypy + name: mypy + entry: uv run mypy src/ + language: system + types: [python] + pass_filenames: false + always_run: true + - id: pytest + name: pytest + entry: uv run pytest --tb=short -q + language: system + types: [python] + pass_filenames: false + always_run: true From 3767b68946f27ad207c560c5fe07a187e999dc60 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 00:16:52 +0000 Subject: [PATCH 2/2] chore: enable Renovate pre-commit manager to auto-update hook versions Co-authored-by: deviantintegral <255023+deviantintegral@users.noreply.github.com> --- renovate.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 3129bd2..c20e273 100644 --- a/renovate.json +++ b/renovate.json @@ -2,6 +2,7 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "config:recommended", - "helpers:pinGitHubActionDigests" + "helpers:pinGitHubActionDigests", + ":enablePreCommit" ] }