diff --git a/.trunk/configs/.flake8 b/.trunk/configs/.flake8 new file mode 100644 index 000000000..5ba6e2ffe --- /dev/null +++ b/.trunk/configs/.flake8 @@ -0,0 +1,3 @@ +# Autoformatter friendly flake8 config (all formatting rules disabled) +[flake8] +extend-ignore = D1, D2, E1, E2, E3, E501, W1, W2, W3, W5 diff --git a/.trunk/configs/.isort.cfg b/.trunk/configs/.isort.cfg new file mode 100644 index 000000000..b9fb3f3e8 --- /dev/null +++ b/.trunk/configs/.isort.cfg @@ -0,0 +1,2 @@ +[settings] +profile=black diff --git a/.trunk/configs/.yamllint.yaml b/.trunk/configs/.yamllint.yaml new file mode 100644 index 000000000..4d444662d --- /dev/null +++ b/.trunk/configs/.yamllint.yaml @@ -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 diff --git a/.trunk/configs/ruff.toml b/.trunk/configs/ruff.toml new file mode 100644 index 000000000..346b1d9aa --- /dev/null +++ b/.trunk/configs/ruff.toml @@ -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"] diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index 70acfd11b..519a9181e 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -1,18 +1,31 @@ version: 0.1 cli: - version: 1.3.1 + version: 1.7.0 plugins: sources: - id: trunk - ref: v0.0.8 + ref: v0.0.14 uri: https://github.com/trunk-io/plugins lint: enabled: + - ruff@0.0.260 + - yamllint@1.30.0 + - isort@5.12.0 + - markdownlint@0.33.0 + - oxipng@8.0.0 + - svgo@3.0.2 + - actionlint@1.6.23 + - flake8@6.0.0 + - hadolint@2.12.0 + - shfmt@3.5.0 + - shellcheck@0.9.0 + - black@23.3.0 - git-diff-check - - gitleaks@8.15.2 + - gitleaks@8.16.2 - clang-format@14.0.0 - - prettier@2.8.3 + - prettier@2.8.7 disabled: + - taplo@0.7.0 - shellcheck@0.9.0 - shfmt@3.5.0 - oxipng@8.0.0 @@ -22,7 +35,8 @@ lint: - svgo@3.0.2 runtimes: enabled: - - go@1.18.3 + - python@3.10.8 + - go@1.19.5 - node@18.12.1 actions: disabled: