Skip to content

Commit e3fed78

Browse files
authored
Bump dependencies (#11)
* Bump dependencies * Fix lint issues * Fix more lint issues
1 parent a8922f1 commit e3fed78

File tree

5 files changed

+57
-35
lines changed

5 files changed

+57
-35
lines changed

.golangci.yaml

Lines changed: 46 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,66 @@
1-
# See https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
1+
version: "2"
22
run:
33
tests: true
4-
5-
linters-settings:
6-
errcheck:
7-
check-type-assertions: true
8-
check-blank: true
9-
gocyclo:
10-
min-complexity: 20
11-
dupl:
12-
threshold: 100
13-
misspell:
14-
locale: US
15-
unused:
16-
check-exported: false
17-
unparam:
18-
check-exported: true
19-
204
linters:
21-
enable-all: true
5+
default: all
226
disable:
237
- depguard
8+
- exhaustive
249
- exhaustruct
25-
- exportloopref
2610
- forbidigo
2711
- forcetypeassert
28-
- gci
12+
- funcorder
2913
- gochecknoglobals
3014
- ireturn
3115
- lll
3216
- mnd
17+
- noinlineerr
18+
- nolintlint
3319
- nonamedreturns
34-
- nolintlint # https://github.com/golangci/golangci-lint/issues/3063
3520
- paralleltest
3621
- tagliatelle
3722
- testpackage
3823
- varnamelen
3924
- wrapcheck
40-
25+
- wsl
26+
settings:
27+
dupl:
28+
threshold: 100
29+
errcheck:
30+
check-type-assertions: true
31+
check-blank: true
32+
gocyclo:
33+
min-complexity: 20
34+
misspell:
35+
locale: US
36+
exclusions:
37+
generated: lax
38+
rules:
39+
- linters:
40+
- dupl
41+
- err113
42+
- funlen
43+
- goconst
44+
- mnd
45+
- noctx
46+
path: _test.go
47+
- linters:
48+
- revive
49+
path: examples/
50+
paths:
51+
- third_party$
52+
- builtin$
53+
- examples$
4154
issues:
4255
max-same-issues: 20
43-
exclude-use-default: false
44-
exclude-rules:
45-
- linters:
46-
- dupl
47-
- funlen
48-
- goconst
49-
- goerr113
50-
- gomnd
51-
- noctx
52-
path: "_test.go"
56+
formatters:
57+
enable:
58+
- gofmt
59+
- gofumpt
60+
- goimports
61+
exclusions:
62+
generated: lax
63+
paths:
64+
- third_party$
65+
- builtin$
66+
- examples$

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MODULE_NAME=python
33
VENDOR_DIR = vendor
44

55
PYTHON_VERSION ?= 3.11
6-
GOLANGCI_LINT_VERSION ?= v1.63.4
6+
GOLANGCI_LINT_VERSION ?= v2.2.1
77

88
GO ?= go
99
GOLANGCI_LINT ?= $(shell go env GOPATH)/bin/golangci-lint-$(GOLANGCI_LINT_VERSION)

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ require (
1010

1111
require (
1212
github.com/davecgh/go-spew v1.1.1 // indirect
13-
github.com/kr/pretty v0.2.1 // indirect
13+
github.com/kr/pretty v0.3.1 // indirect
14+
github.com/kr/text v0.2.0 // indirect
1415
github.com/pmezard/go-difflib v1.0.0 // indirect
16+
github.com/rogpeppe/go-internal v1.9.0 // indirect
1517
gopkg.in/yaml.v3 v3.0.1 // indirect
1618
)

go.sum

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1+
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
12
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
23
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
34
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
45
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
6+
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
7+
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
58
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
69
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
710
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
811
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
12+
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
913
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1014
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
15+
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
16+
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
1117
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
1218
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
1319
go.nhat.io/cpy/v3 v3.11.2 h1:6+9rz9UAMg2j3ryZ/r7m9KMTDua88uJcBjU+lHzJ+Jg=

marshal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func Marshal(v any) (*Object, error) { //nolint: cyclop,funlen,gocyclo
8989
return marshalSlice(rv), nil
9090
}
9191

92-
return nil, fmt.Errorf("cannot marshal value of %T to python object", v) //nolint: goerr113
92+
return nil, fmt.Errorf("cannot marshal value of %T to python object", v) //nolint: err113
9393
}
9494

9595
// MustMarshal returns the Python object for v or panics if an error occurs.

0 commit comments

Comments
 (0)