Skip to content

Commit

Permalink
Prep for release v0.0.14 and add fix for ruff (#234)
Browse files Browse the repository at this point in the history
Several fixes:
1. Bump `required_trunk_version` to `>=1.7.0`
2. Bump test version to `1.7.0`
3. Fix a couple of snapshots by trimming their messages. This improves
testing success rate, particularly for trivy
4. Remove the key `bucket` from snapshots (removed in trunk version
1.7.0). Note that this will break LUV/release tests until v0.0.14 is
released.
5. Add a fix to the ruff parser to accommodate its [newest
release](https://github.com/charliermarsh/ruff/releases/tag/v0.0.260).
Still passes old snapshots (it's backwards compatible).

Tested the parser with lots of diagnostics in the flask and pylint
repos.
  • Loading branch information
TylerJang27 committed Mar 30, 2023
1 parent 19b7f84 commit 7561ce7
Show file tree
Hide file tree
Showing 111 changed files with 36 additions and 1,287 deletions.
2 changes: 1 addition & 1 deletion .trunk/trunk.yaml
Expand Up @@ -2,7 +2,7 @@ version: 0.1

cli:
# version used for local trunk runs and testing
version: 1.6.2-beta.3
version: 1.7.0

plugins:
sources:
Expand Down
Expand Up @@ -4,7 +4,6 @@ exports[`Testing linter actionlint test CUSTOM 1`] = `
{
"issues": [
{
"bucket": "actionlint",
"code": "events",
"column": "13",
"file": ".github/workflows/bad.in.yaml",
Expand All @@ -17,7 +16,6 @@ exports[`Testing linter actionlint test CUSTOM 1`] = `
"targetType": "github-workflow",
},
{
"bucket": "actionlint",
"code": "events",
"column": "13",
"file": ".github/workflows/bad.in.yaml",
Expand All @@ -30,7 +28,6 @@ exports[`Testing linter actionlint test CUSTOM 1`] = `
"targetType": "github-workflow",
},
{
"bucket": "actionlint",
"code": "syntax-check",
"column": "1",
"file": ".github/workflows/empty.in.yaml",
Expand Down
Expand Up @@ -4,7 +4,6 @@ exports[`Testing linter actionlint test CUSTOM 1`] = `
{
"issues": [
{
"bucket": "actionlint",
"code": "events",
"column": "13",
"file": ".github/workflows/bad.in.yaml",
Expand All @@ -17,7 +16,6 @@ exports[`Testing linter actionlint test CUSTOM 1`] = `
"targetType": "github-workflow",
},
{
"bucket": "actionlint",
"code": "events",
"column": "13",
"file": ".github/workflows/bad.in.yaml",
Expand All @@ -30,7 +28,6 @@ exports[`Testing linter actionlint test CUSTOM 1`] = `
"targetType": "github-workflow",
},
{
"bucket": "actionlint",
"code": "syntax-check",
"file": ".github/workflows/empty.in.yaml",
"issueClass": "ISSUE_CLASS_NEW",
Expand Down
Expand Up @@ -4,7 +4,6 @@ exports[`Testing linter ansible-lint test FQCN 1`] = `
{
"issues": [
{
"bucket": "ansible-lint",
"code": "role-name",
"column": "1",
"file": "jboss-standalone/roles/java-app",
Expand All @@ -17,7 +16,6 @@ exports[`Testing linter ansible-lint test FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "risky-file-permissions",
"column": "1",
"file": "jboss-standalone/roles/java-app/tasks/main.yml",
Expand All @@ -30,7 +28,6 @@ exports[`Testing linter ansible-lint test FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "risky-file-permissions",
"column": "1",
"file": "jboss-standalone/roles/java-app/tasks/main.yml",
Expand All @@ -43,7 +40,6 @@ exports[`Testing linter ansible-lint test FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "role-name",
"column": "1",
"file": "jboss-standalone/roles/jboss-standalone",
Expand All @@ -56,7 +52,6 @@ exports[`Testing linter ansible-lint test FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "risky-file-permissions",
"column": "1",
"file": "jboss-standalone/roles/jboss-standalone/tasks/main.yml",
Expand All @@ -69,7 +64,6 @@ exports[`Testing linter ansible-lint test FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "command-instead-of-module",
"column": "1",
"file": "jboss-standalone/roles/jboss-standalone/tasks/main.yml",
Expand All @@ -82,7 +76,6 @@ exports[`Testing linter ansible-lint test FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "ignore-errors",
"column": "1",
"file": "jboss-standalone/roles/jboss-standalone/tasks/main.yml",
Expand All @@ -95,7 +88,6 @@ exports[`Testing linter ansible-lint test FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "no-changed-when",
"column": "1",
"file": "jboss-standalone/roles/jboss-standalone/tasks/main.yml",
Expand All @@ -108,7 +100,6 @@ exports[`Testing linter ansible-lint test FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "risky-file-permissions",
"column": "1",
"file": "jboss-standalone/roles/jboss-standalone/tasks/main.yml",
Expand Down
Expand Up @@ -4,7 +4,6 @@ exports[`Testing linter ansible-lint test non_FQCN 1`] = `
{
"issues": [
{
"bucket": "ansible-lint",
"code": "role-name",
"column": "1",
"file": "jboss-standalone/roles/java-app",
Expand All @@ -17,7 +16,6 @@ exports[`Testing linter ansible-lint test non_FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "risky-file-permissions",
"column": "1",
"file": "jboss-standalone/roles/java-app/tasks/main.yml",
Expand All @@ -30,7 +28,6 @@ exports[`Testing linter ansible-lint test non_FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "risky-file-permissions",
"column": "1",
"file": "jboss-standalone/roles/java-app/tasks/main.yml",
Expand All @@ -43,7 +40,6 @@ exports[`Testing linter ansible-lint test non_FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "role-name",
"column": "1",
"file": "jboss-standalone/roles/jboss-standalone",
Expand All @@ -56,7 +52,6 @@ exports[`Testing linter ansible-lint test non_FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "risky-file-permissions",
"column": "1",
"file": "jboss-standalone/roles/jboss-standalone/tasks/main.yml",
Expand All @@ -69,7 +64,6 @@ exports[`Testing linter ansible-lint test non_FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "command-instead-of-module",
"column": "1",
"file": "jboss-standalone/roles/jboss-standalone/tasks/main.yml",
Expand All @@ -82,7 +76,6 @@ exports[`Testing linter ansible-lint test non_FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "ignore-errors",
"column": "1",
"file": "jboss-standalone/roles/jboss-standalone/tasks/main.yml",
Expand All @@ -95,7 +88,6 @@ exports[`Testing linter ansible-lint test non_FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "no-changed-when",
"column": "1",
"file": "jboss-standalone/roles/jboss-standalone/tasks/main.yml",
Expand All @@ -108,7 +100,6 @@ exports[`Testing linter ansible-lint test non_FQCN 1`] = `
"targetType": "ansible",
},
{
"bucket": "ansible-lint",
"code": "risky-file-permissions",
"column": "1",
"file": "jboss-standalone/roles/jboss-standalone/tasks/main.yml",
Expand Down

0 comments on commit 7561ce7

Please sign in to comment.