Skip to content

Commit

Permalink
[Fix][precommit] Fix pre-commit golangci-lint always success (ray-pro…
Browse files Browse the repository at this point in the history
  • Loading branch information
MortalHappiness authored May 13, 2024
1 parent 491fbde commit d8b7c69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,28 @@ repos:
hooks:
- id: golangci-lint-ray-operator
name: golangci-lint (ray-operator)
entry: bash -c 'cd ray-operator && golangci-lint run --fix --exclude-files _generated.go; cd ..'
entry: bash -c 'cd ray-operator && golangci-lint run --fix --exclude-files _generated.go --timeout 10m0s; status=$?; cd ..; exit $status'
types: [ go ]
language: golang
require_serial: true
files: ^ray-operator/
# - id: golangci-lint-apiserver
# name: golangci-lint (apiserver)
# entry: bash -c 'cd apiserver && golangci-lint run --fix --exclude='SA1019' --exclude-files _generated.go\|datafile.go; cd ..'
# entry: bash -c 'cd apiserver && golangci-lint run --fix --exclude='SA1019' --exclude-files _generated.go\|datafile.go --timeout 10m0s; status=$?; cd ..; exit $status'
# types: [ go ]
# language: golang
# require_serial: true
# files: ^apiserver/
# - id: golangci-lint-cli
# name: golangci-lint (cli)
# entry: bash -c 'cd cli && golangci-lint run --fix --exclude-files _generated.go; cd ..'
# entry: bash -c 'cd cli && golangci-lint run --fix --exclude-files _generated.go --timeout 10m0s; status=$?; cd ..; exit $status'
# types: [ go ]
# language: golang
# require_serial: true
# files: ^cli/
# - id: golangci-lint-experimental
# name: golangci-lint (experimental)
# entry: bash -c 'cd experimental && golangci-lint run --fix --exclude-files _generated.go; cd ..'
# entry: bash -c 'cd experimental && golangci-lint run --fix --exclude-files _generated.go --timeout 10m0s; status=$?; cd ..; exit $status'
# types: [ go ]
# language: golang
# require_serial: true
Expand Down

0 comments on commit d8b7c69

Please sign in to comment.