mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
check_consistent.py: Add check ensuring packages are not installed for unspecified platforms (#9265)
This commit is contained in:
@@ -12,6 +12,9 @@ from typing import NamedTuple
|
||||
import pathspec # type: ignore[import]
|
||||
import tomli
|
||||
|
||||
# Used to install system-wide packages for different OS types:
|
||||
METADATA_MAPPING = {"linux": "apt_dependencies", "darwin": "brew_dependencies", "win32": "choco_dependencies"}
|
||||
|
||||
|
||||
def strip_comments(text: str) -> str:
|
||||
return text.split("#")[0].strip()
|
||||
|
||||
Reference in New Issue
Block a user