Skip to content

Commit f38cc0e

Browse files
cdeckerrustyrussell
authored andcommitted
chore: Add a simple pre-commit config
By limiting the commits that we look at to the changes since `master` we can incrementally pull files under the coverage of these lints and checks. Changelog-None: Not applicable, this is DX
1 parent 0dee58c commit f38cc0e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
# Ruff version.
4+
rev: v0.8.0
5+
hooks:
6+
# Run the linter.
7+
- id: ruff
8+
args: [ --diff ]
9+
exclude: "contrib/pyln-grpc-proto/pyln/grpc/(primitives|node)_pb2(|_grpc).py"
10+
# Run the formatter.
11+
- id: ruff-format
12+
args: [ --diff ]
13+
exclude: "contrib/pyln-grpc-proto/pyln/grpc/(primitives|node)_pb2(|_grpc).py"

0 commit comments

Comments
 (0)