-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add a --emit stdout
flag to scarb fmt
#700
Comments
I'm all-in to do this the way how proposed solution looks like. I believe though that there is no such option upstream either, and one would have to also push a PR to Cairo compiler first. I'm happy to accept PRs for this, as it's not something our team has capacity to take on immediately right now 😄 |
created issue in cairo starkware-libs/cairo#4134 let's see what they are up to, imho just updating the behavior of |
the handling of the output is done in the wrapping binary - not in the cairo library itself. |
I'd like to take this issue if possible
I'm not sure I understand this, what is the "wrapping binary", are you referring to a part of Scarb's system? After talking with @ClementWalter, I propose this change:
|
I would definitely not deviate from Please implement The issue is yours 😉 Thanks |
So if I understand correctly,
-> no changes are made to cairo format |
Yep! |
Problem
There is no way to have scarb outputs the formatted result instead of overwriting the input.
This is a problem when integrating scarb with other linters in a tool like trunk.io. See this file using
cairo-format
:https://github.com/ClementWalter/kakarot/blob/7686fbf022d99ce01927eb488ad59f0a0ec7ce5d/.trunk/trunk.yaml#L30
Proposed Solution
Add, like in the previous
cairo-format
tool, or inrustfmt
a flag--emit stdout
to emit and not overwriteNotes
No response
The text was updated successfully, but these errors were encountered: