feat(templates): Add new python hook for pre-commit

For the pre-commit-config.yaml added the Ruff hook and, as Ruff is being
configured via TOML file instead of inline command line arguments, also
added the toml checker.
This commit is contained in:
Dionisio E Alonso 2024-02-26 11:18:36 -03:00
parent a22d0b22d1
commit 695f0977d6
1 changed files with 7 additions and 0 deletions

View File

@ -4,10 +4,17 @@ repos:
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- id: check-yaml
exclude: .chart/
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
hooks:
- id: ruff
args: [--config=./backoffice/ceg/pyproject.toml]
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks: