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 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" ] }