mypy_test: Skip files starting with '.' (#6306)

This commit is contained in:
Sebastian Rittau
2021-11-16 16:00:39 +01:00
committed by GitHub
parent 1274445941
commit bcc743dd2b

View File

@@ -318,7 +318,7 @@ def main():
supported_versions = parse_versions(os.path.join("stdlib", "VERSIONS"))
root = "stdlib"
for name in os.listdir(root):
if name == "@python2" or name == "VERSIONS":
if name == "@python2" or name == "VERSIONS" or name.startswith("."):
continue
mod, _ = os.path.splitext(name)
if supported_versions[mod][0] <= (major, minor) <= supported_versions[mod][1]: