mirror of https://gitlab.com/baco/dotconf.git
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:
parent
a22d0b22d1
commit
695f0977d6
|
@ -4,10 +4,17 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
- id: check-toml
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
exclude: .chart/
|
exclude: .chart/
|
||||||
- id: check-added-large-files
|
- 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
|
- repo: https://github.com/PyCQA/flake8
|
||||||
rev: 7.0.0
|
rev: 7.0.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|
Loading…
Reference in New Issue