File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed
Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 1+ name : pre-commit
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [ main ]
7+
8+ jobs :
9+ pre-commit :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - uses : actions/setup-python@v5
14+ -
uses :
pre-commit/[email protected]
Original file line number Diff line number Diff line change 11name : CI
22
33on :
4- push :
5- branches : ["main"]
64 pull_request :
5+ push :
76 branches : ["main"]
87
98jobs :
Original file line number Diff line number Diff line change 1+ # See https://pre-commit.com for more information
2+ # See https://pre-commit.com/hooks.html for more hooks
3+ repos :
4+ - repo : https://github.com/pre-commit/pre-commit-hooks
5+ rev : v5.0.0
6+ hooks :
7+ - id : trailing-whitespace
8+ - id : end-of-file-fixer
9+ - id : check-yaml
10+ - id : check-added-large-files
11+
12+ - repo : https://github.com/golangci/golangci-lint
13+ rev : v1.63.4
14+ hooks :
15+ - id : golangci-lint
16+ entry : golangci-lint run --fix
17+ pass_filenames : false
You can’t perform that action at this time.
0 commit comments