Skip to content

Commit

Permalink
feat: setup trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
westonplatter committed Oct 12, 2024
1 parent 5c09216 commit 32baefc
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 0 deletions.
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
2 changes: 2 additions & 0 deletions .trunk/configs/.isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[settings]
profile=black
Empty file.
10 changes: 10 additions & 0 deletions .trunk/configs/.yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
rules:
quoted-strings:
required: only-when-needed
extra-allowed: ["{|}"]
empty-values:
forbid-in-block-mappings: true
forbid-in-flow-mappings: true
key-duplicates: {}
octal-values:
forbid-implicit-octal: true
5 changes: 5 additions & 0 deletions .trunk/configs/ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Generic, formatter-friendly config.
select = ["B", "D3", "D4", "E", "F"]

# Never enforce `E501` (line length violations). This should be handled by formatters.
ignore = ["E501"]
47 changes: 47 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: 0.1
cli:
version: 1.22.5

plugins:
sources:
- id: trunk
ref: v1.6.2
uri: https://github.com/trunk-io/plugins

lint:
enabled:
# - [email protected]
# - [email protected]
- [email protected]
- [email protected]
- git-diff-check
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
# - [email protected]
- [email protected]
- [email protected]
disabled:
- checkov
- bandit
ignore:
- linters: [ruff]
paths:
- "*.ipynb"

runtimes:
enabled:
- [email protected]
- [email protected]
- [email protected]

actions:
enabled:
- trunk-announce
- trunk-check-pre-push
- trunk-fmt-pre-commit
- trunk-upgrade-available

0 comments on commit 32baefc

Please sign in to comment.