Skip to content

Commit

Permalink
update pre-commit, fix some yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
drmorr0 committed Jul 27, 2024
1 parent d5c3121 commit 740ced2
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
---
github: acrlabs
9 changes: 4 additions & 5 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: code verification
on: [push]
on: [push] # yamllint disable-line rule:truthy

jobs:
build:
Expand Down Expand Up @@ -27,10 +28,8 @@ jobs:
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Lint Go code
uses: golangci/golangci-lint-action@v3
with:
version: v1.55
- name: Run pre-commit
uses: pre-commit/[email protected]
- name: Test
run: make test cover
- name: Upload coverage
Expand Down
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
run:
timeout: 5m

Expand Down Expand Up @@ -53,7 +54,7 @@ linters-settings:

gosec:
excludes:
- G601 # memory aliasing -- not a problem in 1.22+
- G601 # memory aliasing -- not a problem in 1.22+

importas:
no-unaliased: true
Expand Down
11 changes: 7 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: check-yaml
args: ["--allow-multiple-documents"]
- id: trailing-whitespace
- repo: https://github.com/golangci/golangci-lint
- repo: "https://github.com/adrienverge/yamllint"
rev: v1.35.1
hooks:
- id: yamllint
args: ['--strict']
- repo: "https://github.com/golangci/golangci-lint"
rev: v1.55.2
hooks:
- id: golangci-lint
9 changes: 9 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
extends: default

rules:
line-length:
max: 120
quoted-strings:
required: false
extra-required: [^http://, ^https://]

0 comments on commit 740ced2

Please sign in to comment.