Skip to content

Commit 40f7519

Browse files
committed
ci: add trunk config to repo
1 parent 48b9981 commit 40f7519

File tree

7 files changed

+60
-5
lines changed

7 files changed

+60
-5
lines changed

.trunk/.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*out
2+
*logs
3+
*actions
4+
*notifications
5+
*tools
6+
plugins
7+
user_trunk.yaml
8+
user.yaml
9+
tmp

.trunk/configs/.rustfmt.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# See: https://rust-lang.github.io/rustfmt
2+
normalize_comments = true
3+
use_field_init_shorthand = true
4+
edition = "2021"

.trunk/configs/.shellcheckrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
enable=all
2+
source-path=SCRIPTDIR
3+
disable=SC2154
4+
5+
# If you're having issues with shellcheck following source, disable the errors via:
6+
# disable=SC1090
7+
# disable=SC1091

.trunk/configs/.yamllint.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
rules:
2+
quoted-strings:
3+
required: only-when-needed
4+
extra-allowed: ["{|}"]
5+
key-duplicates: {}
6+
octal-values:
7+
forbid-implicit-octal: true

.trunk/trunk.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This file controls the behavior of Trunk: https://docs.trunk.io/cli
2+
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
3+
version: 0.1
4+
cli:
5+
version: 1.22.7
6+
plugins:
7+
sources:
8+
- id: trunk
9+
ref: v1.6.4
10+
uri: https://github.com/trunk-io/plugins
11+
actions:
12+
disabled:
13+
- trunk-announce
14+
- trunk-check-pre-push
15+
enabled:
16+
- trunk-fmt-pre-commit
17+
- trunk-upgrade-available
18+
lint:
19+
enabled:
20+
- actionlint@1.7.3
21+
- checkov@3.2.277
22+
- git-diff-check
23+
- markdownlint@0.42.0
24+
- osv-scanner@1.9.1
25+
- prettier@3.3.3
26+
- rustfmt@1.65.0
27+
- shellcheck@0.10.0
28+
- shfmt@3.6.0
29+
- taplo@0.9.3
30+
- trufflehog@3.83.2
31+
- yamllint@1.35.1

Cargo.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
[workspace]
2-
members = [
3-
"crates/brainfuck-vm",
4-
"crates/brainfuck-prover",
5-
]
2+
members = ["crates/brainfuck-vm", "crates/brainfuck-prover"]
63
resolver = "2"
74

85
[workspace.package]

scripts/clippy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

33
cargo +nightly-2024-01-04 clippy "$@" --all-targets --all-features -- -D warnings -D future-incompatible \
4-
-D nonstandard-style -D rust-2018-idioms -D unused
4+
-D nonstandard-style -D rust-2018-idioms -D unused

0 commit comments

Comments
 (0)