How to format files but not check them? #19593
Unanswered
clement-escolano
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Running |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I use ruff in some project both for linting and formatting. Our migrations folder is full of files (most of them are autogenerated) so I don't want ruff to check these files and fail if there is an issue. To do this, I added this folder in the
exclude
parameter in the configuration.However, from time to time, I write a custom migration ((I am using PyCharm and ruff plugin) and would like ruff to format my code but ruff correctly does not because it is an excluded file.
Is it possible to configure ruff so that when it encounters a file, it formats it but when checking the whole project, it does not fail if there is an issue?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions