Closed mpurusottamc closed 1 month ago
Hmm, that sounds obscure.
I don't know if it is related but it seems that pre-commit uses Ruff 0.6.4 but you use Ruff 0.1.9 locally. Can you try upgrading your local ruff version?
I don't know if it is related but it seems that pre-commit uses Ruff 0.6.4 but you use Ruff 0.1.9 locally. Can you try upgrading your local ruff version?
@MichaReiser I have updated to the latest version for Ruff. I will keep an eye out to see if it happens again. Thanks for your quick response.
Let's close for now, and we can always reopen if it comes up again. Thank you!
Some times, after running pre-commit, i notice duplicate return statements in the last function of the file.
Ex:
See screenshot here for reference.
Here's the pre-commit command I run:
Here's how my
.pre-commit-config.yaml
looks like:Sometimes, i have noticed, there are > 5 return statements. Depending on how many times pre-commit was run. I have not been able to reproduce repeatedly. Will share if I am able to find the steps.
Ruff Version:
ruff 0.1.9