PythonCheck: Do not allow tests folder in subpackages (#961)

See https://github.com/rpm-software-management/rpmlint/pull/955#discussion_r1022681043
This commit is contained in:
danigm 2022-11-15 18:52:05 +01:00 committed by GitHub
parent 3b98cb263a
commit ab5ba2f98f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ ERR_PATHS = [
(re.compile(f'{SITELIB_RE}/tests?$'), 'tests'),
(re.compile(f'{SITELIB_RE}/docs?$'), 'doc'),
(re.compile(f'{SITELIB_RE}/src$'), 'src'),
(re.compile(f'{SITELIB_RE}/[^/]+/tests?$'), 'tests-package'),
(re.compile(f'{SITELIB_RE}/.+/tests?$'), 'tests-package'),
]
# Paths that shouldn't be in any packages, but might need to be under