devtools: Replace Ruff with Flake8 in pre-commit.

This commit is contained in:
Se7enZ
2026-01-12 20:01:08 +01:00
committed by Sangbida
parent 623300d6a3
commit 2fa0feecc5

View File

@@ -1,15 +1,9 @@
repos: repos:
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/pycqa/flake8
# Ruff version. rev: 7.3.0
rev: v0.8.0
hooks: hooks:
# Run the linter. - id: flake8
- id: ruff args: [ "--ignore=E501,E731,E741,W503,F541,E275" ]
args: [ --diff ]
exclude: "contrib/pyln-grpc-proto/pyln/grpc/(primitives|node)_pb2(|_grpc).py"
# Run the formatter.
- id: ruff-format
args: [ --diff ]
exclude: "contrib/pyln-grpc-proto/pyln/grpc/(primitives|node)_pb2(|_grpc).py" exclude: "contrib/pyln-grpc-proto/pyln/grpc/(primitives|node)_pb2(|_grpc).py"
- repo: https://github.com/shellcheck-py/shellcheck-py - repo: https://github.com/shellcheck-py/shellcheck-py