mirror of https://github.com/nicolargo/glances.git
27 lines
707 B
YAML
27 lines
707 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: check-ast
|
|
- id: check-docstring-first
|
|
- id: check-json
|
|
- id: check-merge-conflict
|
|
- id: check-shebang-scripts-are-executable
|
|
- id: check-toml
|
|
- id: check-yaml
|
|
- id: debug-statements
|
|
- id: detect-private-key
|
|
- id: mixed-line-ending
|
|
- id: requirements-txt-fixer
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.14.1
|
|
hooks:
|
|
# Run the linter.
|
|
- id: ruff-check
|
|
types_or: [ python, pyi ]
|
|
args: [ --fix, --exit-non-zero-on-fix ]
|
|
# Run the formatter.
|
|
- id: ruff-format
|
|
types_or: [ python, pyi ]
|