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

Support --fix argument on changed lines #16

Open
ilaner opened this issue Aug 12, 2023 · 1 comment
Open

Support --fix argument on changed lines #16

ilaner opened this issue Aug 12, 2023 · 1 comment

Comments

@ilaner
Copy link

ilaner commented Aug 12, 2023

When executing riff with --fix flag, it will fix the code in all lines and not only on changed lines.
Basically we can revert ruff changes (using git) on all unchanged lines.

@dorschw
Copy link
Owner

dorschw commented Aug 12, 2023

Interesting idea, thanks

Could be challenging as I'm not certain that fixes always replace one line with one line (e.g. there could be a fix that changes a line into more than one, or vice versa)

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

2 participants