You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a CLI flag for preserving document starts in YAML somehow.
I would say Nitpick should preserve existing content whenever possible, without any CLI flags.
I didn't check ruamel.yaml's docs yet; it's the YAML-preserving package I use.
I don't remember configuring it to remove document starts, I'm not sure if it is configurable at all.
I'll check it when working on this bug. 👍🏻
Expected behavior
I run
yamllint --strict
(docs), which checks for the presence of a YAML document start.I am finding
nitpick
making extra diff churn becausepre-commit
configs don't use document start.Current behavior
When running
nitpick
, it removes the document start.Steps to reproduce
.pre-commit-config.yaml
that previously has a document start---
nitpick fix
to generate an updated.pre-commit-config.yaml
---
Possible Solution
Adding a CLI flag for preserving document starts in YAML somehow.
Context
N/a
Your environment
nitpick
version used: 0.34.0The text was updated successfully, but these errors were encountered: