Newlines & VSCode #1361
Replies: 1 comment
-
Ran into the same issue with this. The issue is that the YAML formatter being used (pre-commit-hook-yamlfmt) rewrites the files. Python uses the OS default line ending format by default when it writes files. So when this runs on Windows, it will change the YAML file from The YAML linter to validate formatting (yamllint) is configured to require all YAML files in this project to use I've submitted a PR for the YAML formatter being used to allow overriding this behavior (jumanjihouse/pre-commit-hook-yamlfmt#57). If that PR gets accepted, then this project can update the There is a separate 2nd issue on Windows that should be fixed by another PR. This one prevents the You can manually just go into the |
Beta Was this translation helpful? Give feedback.
-
Hello!, can anybody provide some tips about how to work with this repo & VSCode on Windows?.
For reasons I have to work with that combination and I'm struggling with new line formatting and yamllint. The weird think is that either way I end up with the wrong number of trailing lines on the new files, either too many or too few.
Tried setting new lines to "LF", same output. I have a PR stuck because of this.
Beta Was this translation helpful? Give feedback.
All reactions