Skip to content

Commit

Permalink
Exclude tests
Browse files Browse the repository at this point in the history
This will be caught by a different linter later

Signed-off-by: Elizabeth Myers <[email protected]>
  • Loading branch information
Elizafox committed Oct 18, 2023
1 parent 4e3cd34 commit 57c49b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/linter/linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,11 @@ func pythonMultiplePackagesPostLinter(_ LinterContext, fsys fs.FS) error {
continue
}

if base == "test" || base == "tests" {
// Exclude tests
continue
}

ext := filepath.Ext(base)
if ext == ".egg-info" || ext == ".dist-info" || ext == ".pth" || ext == ".so" {
// Exclude various metadata files and .so files
Expand Down

0 comments on commit 57c49b5

Please sign in to comment.