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(deps): update ruff to v0.11.1 #1026

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix(deps): update ruff to v0.11.1 #1026

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 14, 2025

This PR contains the following updates:

Package Type Update Change Age Adoption Passing Confidence
astral-sh/ruff-pre-commit repository minor v0.10.0 -> v0.11.1 age adoption passing confidence
ruff (source, changelog) project.optional-dependencies minor ==0.10.0 -> ==0.11.1 age adoption passing confidence

Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.


Release Notes

astral-sh/ruff-pre-commit (astral-sh/ruff-pre-commit)

v0.11.1

Compare Source

See: https://github.com/astral-sh/ruff/releases/tag/0.11.1

v0.11.0

Compare Source

See: https://github.com/astral-sh/ruff/releases/tag/0.11.0

astral-sh/ruff (ruff)

v0.11.1

Compare Source

Preview features
  • [airflow] Add chain, chain_linear and cross_downstream for AIR302 (#​16647)
  • [syntax-errors] Improve error message and range for pre-PEP-614 decorator syntax errors (#​16581)
  • [syntax-errors] PEP 701 f-strings before Python 3.12 (#​16543)
  • [syntax-errors] Parenthesized context managers before Python 3.9 (#​16523)
  • [syntax-errors] Star annotations before Python 3.11 (#​16545)
  • [syntax-errors] Star expression in index before Python 3.11 (#​16544)
  • [syntax-errors] Unparenthesized assignment expressions in sets and indexes (#​16404)
Bug fixes
  • Server: Allow FixAll action in presence of version-specific syntax errors (#​16848)
  • [flake8-bandit] Allow raw strings in suspicious-mark-safe-usage (S308) #​16702 (#​16770)
  • [refurb] Avoid panicking unwrap in verbose-decimal-constructor (FURB157) (#​16777)
  • [refurb] Fix starred expressions fix (FURB161) (#​16550)
  • Fix --statistics reporting for unsafe fixes (#​16756)
Rule changes
  • [flake8-executables] Allow uv run in shebang line for shebang-missing-python (EXE003) (#​16849,#​16855)
CLI
Documentation
  • Update Ruff tutorial to avoid non-existent fix in __init__.py (#​16818)
  • [flake8-gettext] Swap format- and printf-in-get-text-func-call examples (INT002, INT003) (#​16769)

v0.11.0

Compare Source

This is a follow-up to release 0.10.0. Because of a mistake in the release process, the requires-python inference changes were not included in that release. Ruff 0.11.0 now includes this change as well as the stabilization of the preview behavior for PGH004.

Breaking changes
  • Changes to how the Python version is inferred when a target-version is not specified (#​16319)

    In previous versions of Ruff, you could specify your Python version with:

    • The target-version option in a ruff.toml file or the [tool.ruff] section of a pyproject.toml file.
    • The project.requires-python field in a pyproject.toml file with a [tool.ruff] section.

    These options worked well in most cases, and are still recommended for fine control of the Python version. However, because of the way Ruff discovers config files, pyproject.toml files without a [tool.ruff] section would be ignored, including the requires-python setting. Ruff would then use the default Python version (3.9 as of this writing) instead, which is surprising when you've attempted to request another version.

    In v0.10, config discovery has been updated to address this issue:

    • If Ruff finds a ruff.toml file without a target-version, it will check
      for a pyproject.toml file in the same directory and respect its
      requires-python version, even if it does not contain a [tool.ruff]
      section.
    • If Ruff finds a user-level configuration, the requires-python field of the closest pyproject.toml in a parent directory will take precedence.
    • If there is no config file (ruff.tomlor pyproject.toml with a
      [tool.ruff] section) in the directory of the file being checked, Ruff will
      search for the closest pyproject.toml in the parent directories and use its
      requires-python setting.
Stabilization

The following behaviors have been stabilized:

  • blanket-noqa (PGH004): Also detect blanked file-level noqa comments (and not just line level comments).
Preview features
  • [syntax-errors] Tuple unpacking in for statement iterator clause before Python 3.9 (#​16558)

Configuration

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

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

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


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) March 14, 2025 17:43
Copy link

codecov bot commented Mar 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77%. Comparing base (fb8ee1f) to head (352951f).

Additional details and impacted files
@@         Coverage Diff          @@
##           main   #1026   +/-   ##
====================================
  Coverage    77%     77%           
====================================
  Files        31      31           
  Lines      3667    3667           
====================================
  Hits       2858    2858           
  Misses      809     809           
Flag Coverage Δ
examples 57% <ø> (+<1%) ⬆️
tests 77% <ø> (+<1%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@renovate renovate bot changed the title fix(deps): update ruff to v0.11.0 fix(deps): update ruff to v0.11.1 Mar 20, 2025
@renovate renovate bot force-pushed the renovate/ruff branch from 0055dcc to 352951f Compare March 20, 2025 16:59
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.

1 participant