chore: add pre-commit and pyproject configs

This commit is contained in:
Charlotte Gaskell 2025-12-23 17:24:53 +00:00
parent 2cfa5cecd7
commit 1d0ef191c6
Signed by: charlotte
GPG key ID: 8B93BA001088A340
2 changed files with 66 additions and 0 deletions

15
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,15 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.2
hooks:
- id: ruff-check
- id: ruff-format