Ruff pre commit on only changed lines #10977
-
Is there a way to only run the linter on lines that have been changed, rather than the whole file during a git commit? |
Beta Was this translation helpful? Give feedback.
Answered by
MichaReiser
Apr 17, 2024
Replies: 1 comment 2 replies
-
No, I'm sorry. That's not a functionality that Ruff's linter supports today (the formatter supports formatting individual lines). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can pass the
--range
option toruff format