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

chore(deps): update dependency dev/ruff to v0.2.1 #536

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 2, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
dev/ruff (source, changelog) ==0.1.15 -> ==0.2.1 age adoption passing confidence

Release Notes

astral-sh/ruff (dev/ruff)

v0.2.1

Compare Source

This release includes support for range formatting (i.e., the ability to format specific lines
within a source file).

Preview features
  • [refurn] Implement missing-f-string-syntax (RUF027) (#​9728)
  • Format module-level docstrings (#​9725)
Formatter
  • Add --range option to ruff format (#​9733)
  • Don't trim last empty line in docstrings (#​9813)
Bug fixes
  • Skip empty lines when determining base indentation (#​9795)
  • Drop __get__ and __set__ from unnecessary-dunder-call (#​9791)
  • Respect generic Protocol in ellipsis removal (#​9841)
  • Revert "Use publicly available Apple Silicon runners (#​9726)" (#​9834)
Performance
  • Skip LibCST parsing for standard dedent adjustments (#​9769)
  • Remove CST-based fixer for C408 (#​9822)
  • Add our own ignored-names abstractions (#​9802)
  • Remove CST-based fixers for C400, C401, C410, and C418 (#​9819)
  • Use AhoCorasick to speed up quote match (#​9773)
  • Remove CST-based fixers for C405 and C409 (#​9821)
  • Add fast-path for comment detection (#​9808)
  • Invert order of checks in zero-sleep-call (#​9766)
  • Short-circuit typing matches based on imports (#​9800)
  • Run dunder method rule on methods directly (#​9815)
  • Track top-level module imports in the semantic model (#​9775)
  • Slight speed-up for lowercase and uppercase identifier checks (#​9798)
  • Remove LibCST-based fixer for C403 (#​9818)
Documentation
  • Update max-pos-args example to max-positional-args (#​9797)
  • Fixed example code in weak_cryptographic_key.rs (#​9774)
  • Fix references to deprecated ANN rules in changelog (#​9771)
  • Fix default for max-positional-args (#​9838)

v0.2.0

Compare Source

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)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title chore(deps): update dependency dev/ruff to v0.2.0 chore(deps): update dependency dev/ruff to v0.2.1 Feb 6, 2024
Signed-off-by: JP-Ellis <josh@jpellis.me>
@JP-Ellis JP-Ellis merged commit afb8c0e into master Feb 7, 2024
31 of 38 checks passed
@JP-Ellis JP-Ellis deleted the renovate/dev-ruff-0.x branch February 7, 2024 01:37
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.

None yet

1 participant