From 57c49b531b5aee838a7844ac550a911aa58c7a52 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Wed, 18 Oct 2023 12:59:17 -0700 Subject: [PATCH] Exclude tests This will be caught by a different linter later Signed-off-by: Elizabeth Myers --- pkg/linter/linter.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/linter/linter.go b/pkg/linter/linter.go index 1bc19f309..757c2f5f7 100644 --- a/pkg/linter/linter.go +++ b/pkg/linter/linter.go @@ -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