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

Fixes #20198: Add cargo fmt to rudder-dev when possible #680

Conversation

peckpeck
Copy link
Member

files = shell("git status --untracked-files=no --porcelain", keep_output=True)
# cargo fmt first if needed
if re.search(r'.rs$', files, flags=re.M) is not None:
shell("cargo fmt", fail_exit=False)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this won't work as is if launched outside of a cargo project

@peckpeck
Copy link
Member Author

this should be done in .gitconfig

@peckpeck peckpeck closed this Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants