feat: Add Black and isort pre-commit hooks with line length configuration

This commit is contained in:
Andreas Koepf (aider) 2025-01-23 11:02:13 +01:00
parent 8d53002e1b
commit 324e84897a
3 changed files with 31 additions and 0 deletions

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

@ -0,0 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 24.1.1
hooks:
- id: black
language_version: python3.12
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)