Skip to content

Commit c665440

Browse files
authored
Bump dependencies (#10)
* Bump dependencies * Fix lint issue * Bump dependencies
1 parent 724e78a commit c665440

File tree

4 files changed

+54
-38
lines changed

4 files changed

+54
-38
lines changed

.golangci.yaml

Lines changed: 42 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,63 @@
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-
164
linters:
17-
enable-all: true
5+
default: all
186
disable:
197
- depguard
208
- exhaustruct
219
- forbidigo
2210
- forcetypeassert
23-
- gci
11+
- funcorder
2412
- gochecknoglobals
2513
- ireturn
2614
- lll
2715
- mnd
16+
- noinlineerr
17+
- nolintlint
2818
- nonamedreturns
29-
- nolintlint # https://github.com/golangci/golangci-lint/issues/3063
3019
- paralleltest
3120
- recvcheck
3221
- tagliatelle
33-
- tenv
3422
- testpackage
3523
- varnamelen
3624
- wrapcheck
37-
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+
paths:
48+
- third_party$
49+
- builtin$
50+
- examples$
3851
issues:
3952
max-same-issues: 20
40-
exclude-use-default: false
41-
exclude-rules:
42-
- linters:
43-
- dupl
44-
- funlen
45-
- goconst
46-
- goerr113
47-
- gomnd
48-
- noctx
49-
path: "_test.go"
53+
formatters:
54+
enable:
55+
- gofmt
56+
- gofumpt
57+
- goimports
58+
exclusions:
59+
generated: lax
60+
paths:
61+
- third_party$
62+
- builtin$
63+
- examples$

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MODULE_NAME=fontforge
33
VENDOR_DIR = vendor
44

55
PYTHON_VERSION ?= 3.11
6-
GOLANGCI_LINT_VERSION ?= v1.64.7
6+
GOLANGCI_LINT_VERSION ?= v2.3.0
77

88
GO ?= go
99
GOLANGCI_LINT ?= $(shell go env GOPATH || true)/bin/golangci-lint-$(GOLANGCI_LINT_VERSION)
@@ -15,7 +15,7 @@ $(VENDOR_DIR):
1515
@$(GO) mod tidy
1616

1717
.PHONY: lint
18-
lint:
18+
lint: $(GOLANGCI_LINT)
1919
@$(GOLANGCI_LINT) run
2020

2121
.PHONY: test

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ go 1.22
55
toolchain go1.22.0
66

77
require (
8-
github.com/Masterminds/semver/v3 v3.3.1
8+
github.com/Masterminds/semver/v3 v3.4.0
99
github.com/stretchr/testify v1.10.0
10-
go.nhat.io/python/v3 v3.11.2
10+
go.nhat.io/python/v3 v3.11.3
1111
)
1212

1313
require (

go.sum

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
github.com/Masterminds/semver/v3 v3.3.1 h1:QtNSWtVZ3nBfk8mAOu/B6v7FMJ+NHTIgUPi7rj+4nv4=
2-
github.com/Masterminds/semver/v3 v3.3.1/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
1+
github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1Xbatp0=
2+
github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
33
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
44
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
5-
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
6-
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
5+
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
6+
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
77
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
88
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
99
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1010
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
11+
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
12+
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
1113
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
1214
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
1315
go.nhat.io/cpy/v3 v3.11.2 h1:6+9rz9UAMg2j3ryZ/r7m9KMTDua88uJcBjU+lHzJ+Jg=
1416
go.nhat.io/cpy/v3 v3.11.2/go.mod h1:i/ZDT/zYfaqSIXteB3ZXum49Hpi2wcRmYDLX6/Yg57E=
1517
go.nhat.io/once v0.3.0 h1:AwMxs8GWXhWS30Al5YbxDRvUwSo1XmgBNn1dr/x/KCQ=
1618
go.nhat.io/once v0.3.0/go.mod h1:1nB6JRBNV5S3GC/UIUtNDpfXxjlEOh55WyD2DxgQrsE=
17-
go.nhat.io/python/v3 v3.11.2 h1:BmO9KTjFSmi1TwURwWx8dqyhNOmFyPjyfinp/5ZyUL4=
18-
go.nhat.io/python/v3 v3.11.2/go.mod h1:G1y2bf0x2+TK/T9YbVC3MbxHeKCS2q7niqi2YjVPCHg=
19+
go.nhat.io/python/v3 v3.11.3 h1:bLoLaRDmRa4eWbvSpi1pw/3YvAJeBqQdNs0go3sngLs=
20+
go.nhat.io/python/v3 v3.11.3/go.mod h1:/2zzuSVh2iRJHu5k9QTuxca/Ne5rXZV+Z2vKL38AWH8=
1921
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2022
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
2123
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=

0 commit comments

Comments
 (0)