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

ruff: disable rule RUF052 #250

Closed
wants to merge 1 commit into from
Closed

Conversation

alexfikl
Copy link
Collaborator

@alexfikl alexfikl commented Dec 5, 2024

RUF052 seems to complain about underscore variables in function arguments. We use that quite a bit to denote "useful, but private, don't depend on this" arguments, so it seemed like a good idea to disable it.

@alexfikl
Copy link
Collaborator Author

alexfikl commented Dec 5, 2024

The pylint failure is quite exciting. No idea what that's about..

From what I can tell, it's due to conda switching to 3.13 by default 🎉

@inducer
Copy link
Owner

inducer commented Dec 5, 2024

I'm not super happy with RUF052 as it is: astral-sh/ruff#14796. Let's see what happens.

@alexfikl
Copy link
Collaborator Author

alexfikl commented Dec 5, 2024

I'm not super happy with RUF052 as it is: astral-sh/ruff#14796. Let's see what happens.

Yeah, agreed. It feels very weird to apply that rule to function/method arguments.

@inducer
Copy link
Owner

inducer commented Dec 6, 2024

The pylint failure seems to be this: pylint-dev/pylint#10000 (comment)

@alexfikl
Copy link
Collaborator Author

alexfikl commented Dec 8, 2024

I'll go ahead and close this, since hopefully it'll just fix itself in the next week or so 😁

@alexfikl alexfikl closed this Dec 8, 2024
@alexfikl alexfikl deleted the disable-ruf052 branch December 8, 2024 18:33
@inducer
Copy link
Owner

inducer commented Dec 12, 2024

They've fixed RUF052, and there's a release with the fix! https://github.com/astral-sh/ruff/releases/tag/0.8.3

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 this pull request may close these issues.

2 participants