-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
feat: implement --staged flag #868
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should surface the error on failure, but looks great otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'm going to do a release this evening so I pushed some changes to get this merged.
This is an attempt to implement/port biome's
--staged
flag when formatting/checking.The implementation just takes over the
arg_includes
field of the glob pattern field which I am not too sure about. I was wondering if it should be a dedicated property but at the end went with just reusingarg_includes
. Which poses the question, should I add validation that--staged
and specific files param can't be used together?let me know what do you think when you get a chance @dsherret