From f8a232ebd82fdf43ec64e99be3bf1bdfc71dc7d4 Mon Sep 17 00:00:00 2001
From: elvis kahoro <elvis@reflex.dev>
Date: Thu, 1 Aug 2024 18:16:29 -0700
Subject: [PATCH] chore: Adding trunk init with sensible config

---
 .trunk/.gitignore |  9 +++++++
 .trunk/trunk.yaml | 60 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
 create mode 100644 .trunk/.gitignore
 create mode 100644 .trunk/trunk.yaml

diff --git a/.trunk/.gitignore b/.trunk/.gitignore
new file mode 100644
index 00000000000..15966d087eb
--- /dev/null
+++ b/.trunk/.gitignore
@@ -0,0 +1,9 @@
+*out
+*logs
+*actions
+*notifications
+*tools
+plugins
+user_trunk.yaml
+user.yaml
+tmp
diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml
new file mode 100644
index 00000000000..0011d6016f7
--- /dev/null
+++ b/.trunk/trunk.yaml
@@ -0,0 +1,60 @@
+# This file controls the behavior of Trunk: https://docs.trunk.io/cli
+# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
+version: 0.1
+cli:
+  version: 1.22.2
+# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
+plugins:
+  sources:
+    - id: trunk
+      ref: v1.6.1
+      uri: https://github.com/trunk-io/plugins
+# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
+runtimes:
+  enabled:
+    - python@>3.8.0
+  definitions:
+    - type: python
+      system_version: allowed
+# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
+lint:
+  enabled:
+    - actionlint@1.7.1
+    - bandit@1.7.9
+    - black@24.8.0
+    - checkov@3.2.222
+    - flake8@7.1.1
+    - git-diff-check
+    - hadolint@2.12.0
+    - isort@5.13.2
+    - markdownlint@0.41.0
+    - mypy@1.11.1
+    - osv-scanner@1.8.3
+    - oxipng@9.1.2
+    - prettier@3.3.3
+    - pylint@3.2.6
+    - pyright@1.1.375
+    - ruff@0.5.7
+    - shellcheck@0.10.0
+    - shfmt@3.6.0
+    - stylelint@16.8.1
+    - svgo@3.3.2
+    - taplo@0.9.3
+    - trivy@0.54.1
+    - trufflehog@3.81.8
+    - yamllint@1.35.1
+  ignore:
+    - linters: [ALL]
+      paths:
+        - "**/*.pyi"
+    - linters: [bandit]
+      paths:
+        - integration/**
+        - tests/**
+actions:
+  disabled:
+    - trunk-fmt-pre-commit
+  enabled:
+    - trunk-announce
+    - trunk-check-pre-push
+    - trunk-upgrade-available