Skip to content

Don't change quote style in YAML #283

@nathanjmcdougall

Description

@nathanjmcdougall

Motivation
Calling get_hook_names modifies the YAML file - only with cosmetic changes but it's still annoying. We should be able to have a read-only version of this operation.

More generally, respecting round-trip quote convention would be excellent, if possible under ruamel.yaml. I feel like I had an issue open for this in the past but the conclusion was that it didn't support this. In any case, having a read_only=True flag to the edit_pre_commit_config_yaml context manager might be a simple fix.

Summary of desired enhancement
Test and fix the side effect of get_hook_names.

Metadata

Metadata

Labels

blockedAnother issue is preventing progressbugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions