Skip to content

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_jsonc and gated to run only for .json files.
  • Plain JSON is recognized but marked skip_processing=True to avoid inserting headers into a format that does not permit comments.