-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 0.8] [flake8-pytest-style
] Remove deprecated rules PT004 and PT005
#14385
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlexWaygood
changed the title
[ruff 0.8] Remove deprecated rules PT004 and PT005
[ruff 0.8] [Nov 16, 2024
flake8-pytest-style
] Remove deprecated rules PT004 and PT005
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
PT004 | 3 | 0 | 3 | 0 | 0 |
RUF100 | 1 | 1 | 0 | 0 | 0 |
Linter (preview)
✅ ecosystem check detected no linter changes.
Ecosystem report analysis:
|
Same concern as #14384 (comment) about merging this now... |
MichaReiser
approved these changes
Nov 16, 2024
This was referenced Nov 17, 2024
MichaReiser
force-pushed
the
ruff-0.8
branch
from
November 19, 2024 07:48
10c6a2a
to
5532cc0
Compare
MichaReiser
force-pushed
the
alex/remove-pt-rules
branch
from
November 19, 2024 08:37
bd7d7c8
to
f18bd01
Compare
MichaReiser
reviewed
Nov 19, 2024
crates/ruff_linter/src/rules/flake8_pytest_style/rules/fixture.rs
Outdated
Show resolved
Hide resolved
Merged
AlexWaygood
added a commit
that referenced
this pull request
Nov 19, 2024
…PT005 (#14385) Co-authored-by: Micha Reiser <micha@reiser.io>
MichaReiser
added a commit
that referenced
this pull request
Nov 20, 2024
…PT005 (#14385) Co-authored-by: Micha Reiser <micha@reiser.io>
MichaReiser
added a commit
that referenced
this pull request
Nov 20, 2024
…PT005 (#14385) Co-authored-by: Micha Reiser <micha@reiser.io>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Remove PT004 and PT005. These were deprecated in #12837, which landed as part of Ruff 0.6 (released on August 15th). There are no open issues on the tracker asking us to undeprecate them.
Test Plan
cargo test
git grep PytestMissingFixtureNameUnderscore
,git grep PytestIncorrectFixtureNameUnderscore
,git grep PT004
andgit grep PT005
all show no results