From 51d9b25023316ef2c9dfe438bf383452bba7c48b Mon Sep 17 00:00:00 2001 From: Scott Ames Date: Sat, 9 Dec 2023 14:36:55 -0800 Subject: [PATCH] ci(trunk): upgrade --- .trunk/configs/.isort.cfg | 2 ++ .trunk/configs/ruff.toml | 5 +++++ .trunk/trunk.yaml | 22 ++++++++++++++-------- 3 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 .trunk/configs/.isort.cfg create mode 100644 .trunk/configs/ruff.toml diff --git a/.trunk/configs/.isort.cfg b/.trunk/configs/.isort.cfg new file mode 100644 index 00000000..b9fb3f3e --- /dev/null +++ b/.trunk/configs/.isort.cfg @@ -0,0 +1,2 @@ +[settings] +profile=black diff --git a/.trunk/configs/ruff.toml b/.trunk/configs/ruff.toml new file mode 100644 index 00000000..f5a235cf --- /dev/null +++ b/.trunk/configs/ruff.toml @@ -0,0 +1,5 @@ +# Generic, formatter-friendly config. +select = ["B", "D3", "E", "F"] + +# Never enforce `E501` (line length violations). This should be handled by formatters. +ignore = ["E501"] diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index d20776e0..7904a6fb 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -1,10 +1,10 @@ version: 0.1 cli: - version: 1.17.2 + version: 1.18.0 plugins: sources: - id: trunk - ref: v1.2.6 + ref: v1.4.0 uri: https://github.com/trunk-io/plugins actions: enabled: @@ -24,20 +24,26 @@ actions: - files: ["*.go"] lint: enabled: + - bandit@1.7.5 + - black@23.9.1 + - checkov@3.1.9 + - isort@5.12.0 + - ruff@0.1.7 + - trivy@0.48.0 - gokart@0.5.1 - - osv-scanner@1.4.3 - - svgo@3.0.3 - - terrascan@1.18.3 - - trufflehog@3.62.1 + - osv-scanner@1.5.0 + - svgo@3.0.5 + - terrascan@1.18.5 + - trufflehog@3.63.2 - actionlint@1.6.26 - git-diff-check@SYSTEM - - gitleaks@8.18.0 + - gitleaks@8.18.1 - gofmt@1.20.4 - golangci-lint@1.55.2 - hadolint@2.12.0 - markdownlint@0.37.0 - prettier@3.1.0 - - renovate@37.8.1 + - renovate@37.87.2 - shellcheck@0.9.0 - shfmt@3.6.0 - stylua@0.19.1