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..78a221eba71 --- /dev/null +++ b/.trunk/trunk.yaml @@ -0,0 +1,62 @@ +# 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.3 +# 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: + disabled: + - flake8 + - markdownlint + - mypy + - prettier + - pylint + - remark-lint + - stylelint + enabled: + - actionlint@1.7.1 + - bandit@1.7.9 + - black@24.8.0 + - checkov@3.2.231 + - git-diff-check + - hadolint@2.12.0 + - isort@5.13.2 + - osv-scanner@1.8.3 + - oxipng@9.1.2 + - pyright@1.1.376 + - ruff@0.6.1 + - shellcheck@0.10.0 + - shfmt@3.6.0 + - svgo@3.3.2 + - taplo@0.9.3 + - trivy@0.54.1 + - trufflehog@3.81.9 + - yamllint@1.35.1 + ignore: + - linters: [ALL] + paths: + - "**/*.pyi" + - linters: [bandit, pyright] + paths: + - integration/** + - tests/** +actions: + disabled: + - trunk-fmt-pre-commit + - trunk-check-pre-push + enabled: + - trunk-announce + - trunk-upgrade-available