Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better deterministic formatting #71

Open
smoser opened this issue Sep 26, 2024 · 0 comments
Open

Better deterministic formatting #71

smoser opened this issue Sep 26, 2024 · 0 comments

Comments

@smoser
Copy link

smoser commented Sep 26, 2024

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.

wolfi-dev/os#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant