Skip to content
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

Bug: pytest --ruff and --ruff-format don't work at the command line #7

Closed
skellys opened this issue Oct 31, 2023 · 1 comment · Fixed by #8
Closed

Bug: pytest --ruff and --ruff-format don't work at the command line #7

skellys opened this issue Oct 31, 2023 · 1 comment · Fixed by #8

Comments

@skellys
Copy link
Contributor

skellys commented Oct 31, 2023

repro:

pytest --ruff --ruff-format tests/assets/check_broken.py tests/assets/format_broken.py

output:

================================================================================== short test summary info ===================================================================================
FAILED tests/assets/check_broken.py::ruff - TypeError: check_file() takes 1 positional argument but 2 were given
FAILED tests/assets/check_broken.py::ruff::format - TypeError: format_file() takes 1 positional argument but 2 were given
FAILED tests/assets/format_broken.py::ruff - TypeError: check_file() takes 1 positional argument but 2 were given
FAILED tests/assets/format_broken.py::ruff::format - TypeError: format_file() takes 1 positional argument but 2 were given
===================================================================================== 4 failed in 0.25s ======================================================================================

and a typo:
also, was this intended to be --force-exclude instead of force-exclude on L66 of this change?
df22c01

@iurisilvio
Copy link
Contributor

Clearly it should be --force-exclude. 🤦🏻‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants