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:
parent
3b98cb263a
commit
ab5ba2f98f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue