Skip to content

Improper parsing of TOML #269

@NF-ada

Description

@NF-ada

Hey,

I'm using pymarkdownlnt which uses this library to load the TOML configuration in the pyproject.toml. It incorrectly flags some strings as invalid TOML even though they aren't. Offending function is at:

def __scan_map(self, config_map: Dict[Any, Any], current_prefix: str) -> None:

Sample pyproject.toml to reproduce it:

[tool.ruff]

lint.per-file-ignores."my_proj/logger.py" = [
  "ANN001", # No type check of logging functions needed
]

The specific issue stems from being to use paths which have a "." character but fails as it's an invalid character, as set in ApplicationProperties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions