Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding trunk config with constraints to ignore test files #3783

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .trunk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*out
*logs
*actions
*notifications
*tools
plugins
user_trunk.yaml
user.yaml
tmp
62 changes: 62 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading