Comments (5)
An easy fix for this issue is to make use of the additional_dependencies: [ruamel.yaml==0.17.21]
, but ideally this should be managed by yamlfmt itself
from pre-commit-hook-yamlfmt.
👁️
from pre-commit-hook-yamlfmt.
published new tag 0.2.3
to constrain ruamel.yaml version:
https://github.com/jumanjihouse/pre-commit-hook-yamlfmt/releases/tag/0.2.3
from pre-commit-hook-yamlfmt.
Facing the same issue since this morning. In our case the issue comes up when using two hooks namely trailing-whitespace and yamlfmt. Somehow the get in each others way.
from pre-commit-hook-yamlfmt.
i'm pretty sure this is the culprit:
from https://sourceforge.net/p/ruamel-yaml/code/ci/0.17.22/tree/CHANGES
plain scalars: put single words longer than width on a line of their own, instead
of after the previous line (issue 427, reported byAntoine Cotten <https://sourceforge.net/u/antoineco/profile/>
_). Caveat: this currently results in a
space ending the previous line.
temp workaround: additional_dependencies: [ruamel.yaml==0.17.21]
from pre-commit-hook-yamlfmt.
Related Issues (20)
- Docker support
- Unexpected ':' HOT 1
- why is this suggested to be used with yamllint, it can be aligned with its rules? HOT 1
- pre-commit hook installation fails on linux HOT 2
- Question: What could be the args to get same output as `yq' ? HOT 2
- File path issue when running locally on Windows HOT 9
- Installation with tag 0.1.0 is failing HOT 1
- How to exclude certain files from yamlfmt? HOT 4
- Implement dictionary key sorting
- yamllint
- Setting different offset breaks hte pre-commit-hook config HOT 1
- mapping values are not allowed here HOT 1
- Is it possible to ignore a line ? HOT 1
- Add argument for accepting path to config file
- Recommended autoformatter introduces lint errors HOT 3
- yamlfmt conflicts with yamllint if there is a long URL HOT 4
- Docs request: `pip install` instructions to the README
- Request: ability to use double quotes HOT 2
- ruamel.yaml.clib 0.2.8 breaks the hook HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pre-commit-hook-yamlfmt.