We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 795e7f4 commit c386733Copy full SHA for c386733
2 files changed
.github/workflows/pre-commit.yml
@@ -0,0 +1,20 @@
1
+name: pre-commit
2
+
3
+on:
4
+ pull_request:
5
+ push:
6
+ branches: [master]
7
8
+jobs:
9
+ pre-commit:
10
+ strategy:
11
+ matrix:
12
+ go-version: [ 1.19.x ]
13
+ platform: [ ubuntu-latest ]
14
+ runs-on: ${{ matrix.platform }}
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+ - uses: actions/setup-python@v3
18
+ - uses: pre-commit/action@v3.0.0
19
+ with:
20
+ extra_args: -c .pre-commit-config.yaml
.pre-commit-config.yaml
@@ -0,0 +1,14 @@
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.4.0
+ hooks:
+ - id: check-yaml
+ - id: end-of-file-fixer
+ exclude: |
+ (?x)^(
+ .*.key|
+ .*.bin|
+ .*.abi|
+ .*/address
+ )$
+ - id: trailing-whitespace
0 commit comments