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 0.2.0 #161599

Merged
merged 2 commits into from Feb 2, 2024
Merged

ruff 0.2.0 #161599

merged 2 commits into from Feb 2, 2024

Conversation

miccal
Copy link
Member

@miccal miccal commented Feb 1, 2024

Created by brew bump


Created with brew bump-formula-pr.

release notes
Check out the [blog post](https://astral.sh/blog/ruff-v0.2.0) for a migration guide and overview of the changes!

Changes

Breaking changes

  • The NURSERY selector cannot be used anymore
  • Legacy selection of nursery rules by exact codes is no longer allowed without preview enabled

See also, the "Remapped rules" section which may result in disabled rules.

Deprecations

The following rules are now deprecated:

The following command line options are now deprecated:

  • --show-source; use --output-format full instead
  • --no-show-source; use --output-format concise instead
  • --output-format text; use full or concise instead

The following settings have moved and the previous name is deprecated:

Remapped rules

The following rules have been remapped to new codes:

Stabilizations

The following rules have been stabilized and are no longer in preview:

Fixes for the following rules have been stabilized and are now available without preview:

Fixes for the following rules have been promoted from unsafe to safe:

The following behaviors have been stabilized:

Preview features

  • [refurb] Implement metaclass_abcmeta (FURB180) (#9658)
  • Implement blank_line_after_nested_stub_class preview style (#9155)
  • The preview rule and-or-ternary (PLR1706) was removed

Bug fixes

  • [flake8-async] Take pathlib.Path into account when analyzing async functions (#9703)
  • [flake8-return] - fix indentation syntax error (RET505) (#9705)
  • Detect multi-statement lines in else removal (#9748)
  • RUF022, RUF023: never add two trailing commas to the end of a sequence (#9698)
  • RUF023: Don't sort __match_args__, only __slots__ (#9724)
  • [flake8-simplify] - Fix syntax error in autofix (SIM114) (#9704)
  • [pylint] Show verbatim constant in magic-value-comparison (PLR2004) (#9694)
  • Removing trailing whitespace inside multiline strings is unsafe (#9744)
  • Support IfExp with dual string arms in invalid-envvar-default (#9734)
  • [pylint] Add __mro_entries__ to known dunder methods (PLW3201) (#9706)

Documentation

  • Removed rules are now retained in the documentation (#9691)
  • Deprecated rules are now indicated in the documentation (#9689)

Contributors

@github-actions github-actions bot added rust Rust use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels Feb 1, 2024
Copy link
Contributor

github-actions bot commented Feb 2, 2024

🤖 An automated task has requested bottles to be published to this PR.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Feb 2, 2024
@BrewTestBot BrewTestBot added this pull request to the merge queue Feb 2, 2024
Merged via the queue into Homebrew:master with commit eec2aea Feb 2, 2024
12 checks passed
@miccal miccal deleted the bump-ruff-0.2.0 branch February 2, 2024 04:40
@github-actions github-actions bot added the outdated PR was locked due to age label Mar 6, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. outdated PR was locked due to age rust Rust use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants