Better deterministic formatting
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start from the existing yam formatting path and review how YAML scalar quoting and styles are selected. Use the quoted examples as cases to reproduce, then verify that running yam removes style-only changes without rewriting unrelated YAML content.
Written by the indexing model from the issue text.
Description
I love gofmt. I love that I don't ever think about formatting go code. The computer does it and I accept it.
I'm probably not the only one who has toyed with editing melange files with a program.
https://github.com/wolfi-dev/os/pull/29368 is an example PR that I made by editing melange yaml with ruamel. It does a pretty good job of not rewriting the whole thing (like 'yaml.dump' would do). But it still had some random changes like :
- 3.10: "310"
- 3.11: "311"
+ 3.10: '310'
+ 3.11: '311'
or
- epoch: 1
+ description: "SentencePiece is an unsupervised text tokenizer and detokenizer"
- epoch: 2
+ description: SentencePiece is an unsupervised text tokenizer and detokenizer
I'd like to just run 'yam' and have it remove all those changes.
- Dominant language
- Go
- Stars
- 34
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from chainguard-dev/yam
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
chainguard-dev/yam#112 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
chainguard-dev/yam#108 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
chainguard-dev/yam#100 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
chainguard-dev/yam#75 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
chainguard-dev/yam#73 · 5 comments ·
All issues in chainguard-dev/yam
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100