ci: pre-commit support

This commit is contained in:
2025-01-03 23:30:33 -03:00
parent ac2760c311
commit 2a1bf93ae0
6 changed files with 292 additions and 36 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: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.5
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
- id: pyupgrade
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black