Skip to content

Commit cc5dd2f

Browse files
authored
feat: generate .golangci.toml (#66)
Closes #65.
1 parent ef18e1e commit cc5dd2f

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<% if private %>
2+
# Copyright (c) 2025 Columnar Technologies Inc. All rights reserved.
3+
<% else %>
4+
# Copyright (c) 2025 ADBC Drivers Contributors
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
<% endif %>
18+
19+
version = "2"
20+
21+
[formatters]
22+
enable = [
23+
"gofmt",
24+
]
25+
26+
[issues]
27+
max-issues-per-linter = 0
28+
max-same-issues = 0
29+
uniq-by-line = false

adbc_drivers_dev/templates/test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ on:
7777
concurrency:
7878
<% if environment %>
7979
# Must share concurrency group with release workflow since it also builds/tests
80-
group: ${{ github.repository }}-${{ github.ref }}-<{environment}>
80+
group: ${{ github.repository }}-${{ github.ref }}-<{environment.replace(' ', '-')}>
8181
<% else %>
8282
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
8383
<% endif %>
@@ -650,7 +650,9 @@ jobs:
650650
cd dbc
651651
go build ./cmd/dbc
652652
echo "Installed dbc"
653+
ls -laR ~/packages
653654
driver_pkg=$(find ~/packages -name '*_${{ matrix.platform }}_${{ matrix.arch }}_*.tar.gz')
655+
echo "Installing ${driver_pkg}"
654656
./dbc install --no-verify "${driver_pkg}"
655657
echo "Installed ${driver_pkg}"
656658
<% if release or not secrets["all"] %>

adbc_drivers_dev/workflow.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ def generate_workflows(args) -> int:
153153
},
154154
)
155155

156+
template = env.get_template("golangci.toml")
157+
write_workflow(
158+
args.repository,
159+
template,
160+
".golangci.toml",
161+
{
162+
**params.to_dict(),
163+
},
164+
)
165+
156166
for dev in ["dev.yaml", "dev_issues.yaml", "dev_pr.yaml", "dev_daily.yaml"]:
157167
template = env.get_template(dev)
158168
write_workflow(

0 commit comments

Comments
 (0)