mirror of https://github.com/nicolargo/glances.git
Add Ruff formater in pre-hook
This commit is contained in:
parent
d97c5cd5b9
commit
fa9bb2cdab
|
|
@ -6,8 +6,12 @@ repos:
|
||||||
name: "🔒 security · Detect hardcoded secrets"
|
name: "🔒 security · Detect hardcoded secrets"
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.14.1
|
rev: v0.14.10
|
||||||
hooks:
|
hooks:
|
||||||
|
- id: ruff-format
|
||||||
|
name: "🐍 python · Formatter with Ruff"
|
||||||
|
types_or: [ python, pyi ]
|
||||||
|
args: [ --config, './pyproject.toml' ]
|
||||||
- id: ruff-check
|
- id: ruff-check
|
||||||
name: "🐍 python · Linter with Ruff"
|
name: "🐍 python · Linter with Ruff"
|
||||||
types_or: [ python, pyi ]
|
types_or: [ python, pyi ]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue