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

fix: warning: Selection of nursery rule PLC1901 without the --preview flag is deprecated. #286

Closed
wants to merge 1 commit into from

Conversation

infinitewarp
Copy link
Member

@infinitewarp infinitewarp commented Oct 25, 2023

This should suppress the warnings that ruff has recently started outputting:

warning: Selection of nursery rule `PLC1901` without the `--preview` flag is deprecated.
warning: Selection of nursery rule `PLC1901` without the `--preview` flag is deprecated.
warning: Selection of nursery rule `PLC1901` without the `--preview` flag is deprecated.

Reference: https://docs.astral.sh/ruff/preview/#using-rules-that-are-in-preview

@infinitewarp infinitewarp requested a review from a team October 25, 2023 14:54
@bruno-fs
Copy link
Contributor

LGTM, but before we merge this would u mind checking it updating ruff can fix this? (we might need to bump it manually because it went from 0.0 to 0.1 (poetry add -G dev ruff@latest)

@infinitewarp
Copy link
Member Author

Closing because #287 also resolves this issue.

@infinitewarp infinitewarp deleted the ruff branch November 15, 2023 16:06
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