-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not compatible with ruff
≥ 0.5.0
#23
Comments
For me, replacing |
Thanks for the investigation! I'll work on it fast to make sure it works again! |
Fixed and released as 0.4.0! |
Thanks for
pytest-ruff
!As of
ruff
0.5.0,ruff
no longer accepts the--show-source
option (https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md#050, astral-sh/ruff#9814, astral-sh/ruff#12005). As a result, whenpytest_ruff
executes itscheck_file()
routine (https://github.com/businho/pytest-ruff/blob/main/pytest_ruff/__init__.py#L87), theruff
command fails. When I run theruff
command constructed bypytest_ruff
, here's what I get --The
--show-source
option has been superceded by--output-format
. It looks likeoutput-format
has been part ofruff
since at least version 0.1.0 (based on https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md), so it's probably the backwards and forwards compatible.The text was updated successfully, but these errors were encountered: