Skip to content

Commit 8cbd6a6

Browse files
fix(ci): restore working trunk config on main (#629)
PR #628 emptied .trunk/trunk.yaml (main currently has a 0-byte file), so Trunk Check has failed on main since. Restore the schema-0.1 config that validated GREEN on CI (run 31551719038): trunk plugin ref v1.11.0 (fixes taplo single-file download and ruff --output-format), pinned linter versions (actionlint, black, clippy 1.88.0, eslint, golangci-lint, mypy, prettier, ruff 0.16.2, rustfmt 1.88.0, shellcheck, taplo, yamllint), plus .trunk/.gitignore for the runtime dirs. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
1 parent 3f44dec commit 8cbd6a6

2 files changed

Lines changed: 91 additions & 0 deletions

File tree

.trunk/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*out
2+
*logs
3+
*actions
4+
*notifications
5+
*tools
6+
plugins
7+
user_trunk.yaml
8+
user.yaml

.trunk/trunk.yaml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
# =============================================================================
3+
# Trunk.io — Plugin versions for linting/formatting tools
4+
# =============================================================================
5+
# This file is auto-generated. Run `trunk upgrade` to update.
6+
# https://docs.trunk.io/check/reference
7+
# =============================================================================
8+
9+
version: 0.1
10+
11+
# CLI version pinned for reproducible runs (matches the version CI downloads).
12+
cli:
13+
version: 1.22.2
14+
15+
# The `trunk` plugin provides the linter/formatter definitions used below.
16+
# User definitions merge over the plugin: fields set in this file override the
17+
# plugin, everything else (files, tools, runtimes, version pins) is inherited.
18+
plugins:
19+
sources:
20+
- id: trunk
21+
ref: v1.11.0
22+
uri: https://github.com/trunk-io/plugins
23+
24+
lint:
25+
# Repo-specific command overrides merged over the plugin definitions.
26+
definitions:
27+
# black: enforce 100-char line length in both lint and format modes.
28+
- name: black
29+
commands:
30+
- name: lint
31+
output: pass_fail
32+
run: black --check --line-length 100 ${target}
33+
success_codes: [0, 1]
34+
- name: format
35+
output: rewrite
36+
run: black --line-length 100 ${target}
37+
success_codes: [0]
38+
batch: true
39+
in_place: true
40+
formatter: true
41+
# clippy: lint all targets/features and fail on any warning.
42+
- name: clippy
43+
commands:
44+
- name: lint
45+
output: clippy
46+
target: ${parent_with(Cargo.toml)}
47+
run: >
48+
cargo clippy --message-format json --all-targets
49+
--all-features
50+
--locked -- -D warnings
51+
success_codes: [0, 101, 383]
52+
disable_upstream: true
53+
54+
# Enabled tools (plugin defaults unless overridden above). Versions are
55+
# pinned explicitly: an unpinned entry resolves to the SYSTEM copy of the
56+
# tool instead of a trunk-managed install.
57+
enabled:
58+
- actionlint@1.7.8
59+
- black@25.9.0
60+
- clippy@1.88.0
61+
- eslint@8.10.0
62+
- golangci-lint@2.6.1
63+
- mypy@2.1.0
64+
- prettier@3.6.2
65+
- ruff@0.16.2
66+
- rustfmt@1.88.0
67+
- shellcheck@0.10.0
68+
- taplo@0.10.0
69+
- yamllint@1.37.1
70+
71+
# GitHub workflow files are covered by actionlint (syntax + shellcheck).
72+
# prettier's YAML printer re-indents `on:`-keyed workflow files with a
73+
# nonstandard style, and yamllint's 80-column default flags long action
74+
# refs; neither reflects this repo's intent, so scope both off workflows.
75+
ignore:
76+
- linters: [prettier, yamllint]
77+
paths:
78+
- .github/workflows/**
79+
80+
# Git hooks: run `trunk check` before `git push`.
81+
actions:
82+
enabled:
83+
- trunk-check-pre-push

0 commit comments

Comments
 (0)