mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-19 14:40:30 +08:00
[ts_utils] Update jsonc_to_json function (#15325)
This commit is contained in:
@@ -17,7 +17,7 @@ from ts_utils.paths import PYRIGHT_CONFIG, REQUIREMENTS_PATH, STDLIB_PATH, STUBS
|
||||
from ts_utils.utils import (
|
||||
get_all_testcase_directories,
|
||||
get_gitignore_spec,
|
||||
json5_to_json,
|
||||
jsonc_to_json,
|
||||
parse_requirements,
|
||||
parse_stdlib_versions_file,
|
||||
spec_matches_path,
|
||||
@@ -178,7 +178,7 @@ def check_requirement_pins() -> None:
|
||||
def check_pyright_exclude_order() -> None:
|
||||
"""Check that 'exclude' entries in pyrightconfig.stricter.json are sorted alphabetically."""
|
||||
text = PYRIGHT_CONFIG.read_text(encoding="utf-8")
|
||||
text = json5_to_json(text)
|
||||
text = jsonc_to_json(text)
|
||||
data = json.loads(text)
|
||||
exclude: list[str] = data.get("exclude", [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user