Skip to content

Commit 22f2b1f

Browse files
authored
chore: Add formatter pre commit hook (#77)
Also kept the default large file hook
1 parent 1d31031 commit 22f2b1f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.2.0
4+
hooks:
5+
- id: check-added-large-files
6+
7+
- repo: https://github.com/jguttman94/pre-commit-gradle
8+
rev: v0.3.0
9+
hooks:
10+
- id: gradle-spotless
11+
args: ["-w"]

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,20 @@ This is the high-level package to use for developing CloudQuery plugins in Java.
44

55
## Setup
66

7+
### Authenticate to GitHub Packages
8+
79
```bash
810
# Set up authentication to GitHub Packages, more in https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry#authenticating-to-github-packages
911
export GITHUB_ACTOR=<your-github-username>
1012
# Classic personal access token with `read:packages` scope
1113
export GITHUB_TOKEN=<personal-access-token>
1214
```
1315

16+
### Install pre-commit hooks
17+
18+
- Install `pre-commit` from <https://pre-commit.com/#install>
19+
- Run `pre-commit install` to install the hooks
20+
1421
## Build
1522

1623
```bash

0 commit comments

Comments
 (0)