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

build(deps-dev): bump ruff from 0.7.4 to 0.8.5 #306

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 3, 2025

Bumps ruff from 0.7.4 to 0.8.5.

Release notes

Sourced from ruff's releases.

0.8.5

Release Notes

Preview features

  • [airflow] Extend names moved from core to provider (AIR303) (#15145, #15159, #15196, #15216)
  • [airflow] Extend rule to check class attributes, methods, arguments (AIR302) (#15054, #15083)
  • [fastapi] Update FAST002 to check keyword-only arguments (#15119)
  • [flake8-type-checking] Disable TC006 and TC007 in stub files (#15179)
  • [pylint] Detect nested methods correctly (PLW1641) (#15032)
  • [ruff] Detect more strict-integer expressions (RUF046) (#14833)
  • [ruff] Implement falsy-dict-get-fallback (RUF056) (#15160)
  • [ruff] Implement unnecessary-round (RUF057) (#14828)

Rule changes

  • Visit PEP 764 inline TypedDict keys as non-type-expressions (#15073)
  • [flake8-comprehensions] Skip C416 if comprehension contains unpacking (#14909)
  • [flake8-pie] Allow cast(SomeType, ...) (PIE796) (#15141)
  • [flake8-simplify] More precise inference for dictionaries (SIM300) (#15164)
  • [flake8-use-pathlib] Catch redundant joins in PTH201 and avoid syntax errors (#15177)
  • [pycodestyle] Preserve original value format (E731) (#15097)
  • [pydocstyle] Split on first whitespace character (D403) (#15082)
  • [pyupgrade] Add all PEP-585 names to UP006 rule (#5454)

Configuration

  • [flake8-type-checking] Improve flexibility of runtime-evaluated-decorators (#15204)
  • [pydocstyle] Add setting to ignore missing documentation for *args and **kwargs parameters (D417) (#15210)
  • [ruff] Add an allowlist for unsafe-markup-use (RUF035) (#15076)

Bug fixes

  • Fix type subscript on older python versions (#15090)
  • Use TypeChecker for detecting fastapi routes (#15093)
  • [pycodestyle] Avoid false positives and negatives related to type parameter default syntax (E225, E251) (#15214)

Documentation

  • Fix incorrect doc in shebang-not-executable (EXE001) and add git+windows solution to executable bit (#15208)
  • Rename rules currently not conforming to naming convention (#15102)

Contributors

... (truncated)

Changelog

Sourced from ruff's changelog.

0.8.5

Preview features

  • [airflow] Extend names moved from core to provider (AIR303) (#15145, #15159, #15196, #15216)
  • [airflow] Extend rule to check class attributes, methods, arguments (AIR302) (#15054, #15083)
  • [fastapi] Update FAST002 to check keyword-only arguments (#15119)
  • [flake8-type-checking] Disable TC006 and TC007 in stub files (#15179)
  • [pylint] Detect nested methods correctly (PLW1641) (#15032)
  • [ruff] Detect more strict-integer expressions (RUF046) (#14833)
  • [ruff] Implement falsy-dict-get-fallback (RUF056) (#15160)
  • [ruff] Implement unnecessary-round (RUF057) (#14828)

Rule changes

  • Visit PEP 764 inline TypedDict keys as non-type-expressions (#15073)
  • [flake8-comprehensions] Skip C416 if comprehension contains unpacking (#14909)
  • [flake8-pie] Allow cast(SomeType, ...) (PIE796) (#15141)
  • [flake8-simplify] More precise inference for dictionaries (SIM300) (#15164)
  • [flake8-use-pathlib] Catch redundant joins in PTH201 and avoid syntax errors (#15177)
  • [pycodestyle] Preserve original value format (E731) (#15097)
  • [pydocstyle] Split on first whitespace character (D403) (#15082)
  • [pyupgrade] Add all PEP-585 names to UP006 rule (#5454)

Configuration

  • [flake8-type-checking] Improve flexibility of runtime-evaluated-decorators (#15204)
  • [pydocstyle] Add setting to ignore missing documentation for *args and **kwargs parameters (D417) (#15210)
  • [ruff] Add an allowlist for unsafe-markup-use (RUF035) (#15076)

Bug fixes

  • Fix type subscript on older python versions (#15090)
  • Use TypeChecker for detecting fastapi routes (#15093)
  • [pycodestyle] Avoid false positives and negatives related to type parameter default syntax (E225, E251) (#15214)

Documentation

  • Fix incorrect doc in shebang-not-executable (EXE001) and add git+windows solution to executable bit (#15208)
  • Rename rules currently not conforming to naming convention (#15102)

0.8.4

Preview features

  • [airflow] Extend AIR302 with additional functions and classes (#15015)
  • [airflow] Implement moved-to-provider-in-3 for modules that has been moved to Airflow providers (AIR303) (#14764)
  • [flake8-use-pathlib] Extend check for invalid path suffix to include the case "." (PTH210) (#14902)
  • [perflint] Fix panic in PERF401 when list variable is after the for loop (#14971)
  • [perflint] Simplify finding the loop target in PERF401 (#15025)

... (truncated)

Commits
  • 11e873e Bump version to 0.8.5 (#15219)
  • 89ea037 [ruff] Unnecessary rounding (RUF057) (#14828)
  • f8c9665 [airflow] Extend names moved from core to provider (AIR303) (#15216)
  • af95f6b [pycodestyle] Avoid false positives and negatives related to type parameter...
  • 79682a2 Sync vendored typeshed stubs (#15213)
  • 1ef0f61 [flake8-type-checking] Improve flexibility of `runtime-evaluated-decorators...
  • 7ca3f95 Update references to astral-sh/ruff-action from v2 to v3 (#15212)
  • 32de580 [airflow]: extend names moved from core to provider (AIR303) (#15196)
  • cfd6093 [pydocstyle] Add setting to ignore missing documentation for*args and `**...
  • 3c9021f [ruff] Implement falsy-dict-get-fallback (RUF056) (#15160)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by Sourcery

Build:

  • Bump Ruff from 0.7.4 to 0.8.5.

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.7.4 to 0.8.5.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.7.4...0.8.5)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jan 3, 2025
Copy link

sourcery-ai bot commented Jan 3, 2025

Reviewer's Guide by Sourcery

This pull request bumps the version of ruff from 0.7.4 to 0.8.5. This includes several preview features, rule changes, configuration updates, bug fixes, and documentation improvements. Notably, ruff now supports additional checks for Airflow, FastAPI, and Pylint, along with new rules for falsy-dict-get-fallback and unnecessary-round. Several existing rules have been improved for better accuracy and to reduce false positives. The configuration options have been extended to provide more flexibility, such as allowing an allowlist for unsafe-markup-use and ignoring missing documentation for *args and **kwargs parameters. Bug fixes address issues with type subscripts on older Python versions, FastAPI route detection, and pycodestyle false positives/negatives.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Bumped ruff version
  • Updated the ruff dependency from 0.7.4 to 0.8.5 in pyproject.toml.
  • Regenerated poetry.lock to reflect the updated ruff dependency.
pyproject.toml
poetry.lock

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!

Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 6, 2025

Superseded by #307.

@dependabot dependabot bot closed this Jan 6, 2025
@dependabot dependabot bot deleted the dependabot/pip/ruff-0.8.5 branch January 6, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants