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

Add no-sorted-min-max check (FURB192) #333

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Conversation

dosisod
Copy link
Owner

@dosisod dosisod commented Mar 20, 2024

Closes #332.

@dosisod dosisod merged commit 85aa150 into master Mar 20, 2024
3 checks passed
@dosisod dosisod deleted the add-no-sorted-min-max-check branch March 20, 2024 06:52
@Skylion007
Copy link

astral-sh/ruff#10463 (comment) heads up the [-1] variants may be unstable which matter when sorting tuple. I'd start with the obviously safe example of min and expand it out if we can verify min/max match the stability of 'sorted'.

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.

[Enhancement]: min/max instead of sorted(l)[0]
2 participants