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 because pre-commit configs don't use document start.
Current behavior
When running nitpick, it removes the document start.
Steps to reproduce
- Have a
.pre-commit-config.yaml that previously has a document start ---
- Run
nitpick fix to generate an updated .pre-commit-config.yaml
- Observe it removed document start
---
Possible Solution
Adding a CLI flag for preserving document starts in YAML somehow.
Context
N/a
Your environment
nitpick version used: 0.34.0
- Python version: 3.12.0
Expected behavior
I run
yamllint --strict(docs), which checks for the presence of a YAML document start.I am finding
nitpickmaking extra diff churn becausepre-commitconfigs don't use document start.Current behavior
When running
nitpick, it removes the document start.Steps to reproduce
.pre-commit-config.yamlthat previously has a document start---nitpick fixto 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
nitpickversion used: 0.34.0