Allow passing options to ruff
The one option I can't live without for ruff is --diff, to show the problem when ruff finds a problem in a source file and would like to fix it.
Other options like --fix could be useful, but at the very least, printing what the actual problem is is invaluable, otherwise you end up with your CI failing because ruff is unhappy, and you have no idea why, for example here's what I just had: all I see is "pytest_ruff.RuffError: File would be reformatted".
If ruff showed the diff he'd do then I can fix the source file locally, push the fix, and the CI is happy the next time. 😁
This is what I do for my source files using black, running black --diff directly in the CI, but this project I'm currently working on uses ruff through pytest-ruff. 😞
Please allow passing the --diff option to ruff through pytest-ruff, or maybe hardcode that option when pytest-ruff runs ruff. 🙇