Consider using f-strings PYL-C0209
Performance
Minor
1 occurrence in this check
Formatting a regular string which could be a f-string
 63            # Ensure all forced_separate patterns will match to end of string
 64            path_glob = forced_separate
 65            if not forced_separate.endswith("*"):
 66                path_glob = "%s*" % forced_separate 67
 68            if fnmatch(module_name, path_glob) or fnmatch(module_name, "." + path_glob):
 69                return forced_separate