Skip to content

Commit

Permalink
test: Update ruff dagger module test
Browse files Browse the repository at this point in the history
  • Loading branch information
softwaredevelop committed Nov 16, 2024
1 parent 8663ae4 commit 4a171d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ruff/test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ func (m *Rufftest) CheckWithConfig(ctx context.Context) error {
_, err := dag.Ruff().CheckWithConfig(dir, file).Stdout(ctx)

if err != nil {
errorIDs := []string{"F401"}
errorIDs := []string{"F821"}
for _, id := range errorIDs {
if strings.Contains(err.Error(), id) {
if !strings.Contains(err.Error(), id) {
return err
}
}
Expand Down
4 changes: 3 additions & 1 deletion ruff/test/testdata/.config/.ruff.toml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
ignore = ["F401"]
lint.ignore = ["F401"]

include = ["**/*.py", "**/*.ipynb"]

0 comments on commit 4a171d4

Please sign in to comment.