topmark.filetypes.builtins.data¶
topmark / filetypes / builtins / data
Data and configuration formats.
Defines structured data formats and common config files. Some formats are headerable (e.g., JSONC, INI, TOML, YAML); others are intentionally skipped (e.g., plain JSON, PEP 561 marker).
Exports
FILETYPES: Concrete definitions for INI, JSON, JSONC,
Python requirements/constraints, PEP 561 marker (py.typed), TOML,
VS Code JSONC files, and YAML.
Notes
- JSONC detection is content-based via
topmark.filetypes.detectors.jsonc.looks_like_jsoncand gated to run only for.jsonfiles. - Plain JSON is recognized but marked
skip_processing=Trueto avoid inserting headers into a format that does not permit comments.