You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect that Ruff would automatically fix files that it watches, not just display the errors. But it appears that the --watch clobbers --fix in that it will watch files and just report the errors.
If I stop watching and then ruff . --fix, ruff automatically fixes issues that it found.
The text was updated successfully, but these errors were encountered:
phillipuniverse
changed the title
[feature-request] Allow --watch to automatically fix with --fix
[feature-request] Allow --watch to automatically fix when combined with --fix
Dec 5, 2022
I initially held off on this because --watch is based on file-watching, and autofixing will modify those files thus triggering another invocation. It may actually work as-is, though. I can at least test it out.
Running the following:
I would expect that Ruff would automatically fix files that it watches, not just display the errors. But it appears that the
--watch
clobbers--fix
in that it will watch files and just report the errors.If I stop watching and then
ruff . --fix
, ruff automatically fixes issues that it found.The text was updated successfully, but these errors were encountered: