rivenmedia / riven

Handle your Media Library with ease!
https://rivenmedia.github.io/wiki/
GNU General Public License v3.0
396 stars 54 forks source link

chore(deps-dev): bump ruff from 0.7.3 to 0.7.4 #894

Closed dependabot[bot] closed 2 days ago

dependabot[bot] commented 3 days ago

Bumps ruff from 0.7.3 to 0.7.4.

Release notes

Sourced from ruff's releases.

0.7.4

Release Notes

Preview features

  • [flake8-datetimez] Detect usages of datetime.max/datetime.min (DTZ901) (#14288)
  • [flake8-logging] Implement root-logger-calls (LOG015) (#14302)
  • [flake8-no-pep420] Detect empty implicit namespace packages (INP001) (#14236)
  • [flake8-pyi] Add "replace with Self" fix (PYI019) (#14238)
  • [perflint] Implement quick-fix for manual-list-comprehension (PERF401) (#13919)
  • [pylint] Implement shallow-copy-environ (W1507) (#14241)
  • [ruff] Implement none-not-at-end-of-union (RUF036) (#14314)
  • [ruff] Implementation unsafe-markup-call from flake8-markupsafe plugin (RUF035) (#14224)
  • [ruff] Report problems for attrs dataclasses (RUF008, RUF009) (#14327)

Rule changes

  • [flake8-boolean-trap] Exclude dunder methods that define operators (FBT001) (#14203)
  • [flake8-pyi] Add "replace with Self" fix (PYI034) (#14217)
  • [flake8-pyi] Always autofix duplicate-union-members (PYI016) (#14270)
  • [flake8-pyi] Improve autofix for nested and mixed type unions for unnecessary-type-union (PYI055) (#14272)
  • [flake8-pyi] Mark fix as unsafe when type annotation contains comments for duplicate-literal-member (PYI062) (#14268)

Server

  • Use the current working directory to resolve settings from ruff.configuration (#14352)

Bug fixes

  • Avoid conflicts between PLC014 (useless-import-alias) and I002 (missing-required-import) by considering lint.isort.required-imports for PLC014 (#14287)
  • [flake8-type-checking] Skip quoting annotation if it becomes invalid syntax (TCH001)
  • [flake8-pyi] Avoid using typing.Self in stub files pre-Python 3.11 (PYI034) (#14230)
  • [flake8-pytest-style] Flag pytest.raises call with keyword argument expected_exception (PT011) (#14298)
  • [flake8-simplify] Infer "unknown" truthiness for literal iterables whose items are all unpacks (SIM222) (#14263)
  • [flake8-type-checking] Fix false positives for typing.Annotated (TCH001) (#14311)
  • [pylint] Allow await at the top-level scope of a notebook (PLE1142) (#14225)
  • [pylint] Fix miscellaneous issues in await-outside-async detection (PLE1142) (#14218)
  • [pyupgrade] Avoid applying PEP 646 rewrites in invalid contexts (UP044) (#14234)
  • [pyupgrade] Detect permutations in redundant open modes (UP015) (#14255)
  • [refurb] Avoid triggering hardcoded-string-charset for reordered sets (FURB156) (#14233)
  • [refurb] Further special cases added to verbose-decimal-constructor (FURB157) (#14216)
  • [refurb] Use UserString instead of non-existent UserStr (FURB189) (#14209)
  • [ruff] Avoid treating lowercase letters as # noqa codes (RUF100) (#14229)
  • [ruff] Do not report when Optional has no type arguments (RUF013) (#14181)

Documentation

  • Add "Notebook behavior" section for F704, PLE1142 (#14266)
  • Document comment policy around fix safety (#14300)

... (truncated)

Changelog

Sourced from ruff's changelog.

0.7.4

Preview features

  • [flake8-datetimez] Detect usages of datetime.max/datetime.min (DTZ901) (#14288)
  • [flake8-logging] Implement root-logger-calls (LOG015) (#14302)
  • [flake8-no-pep420] Detect empty implicit namespace packages (INP001) (#14236)
  • [flake8-pyi] Add "replace with Self" fix (PYI019) (#14238)
  • [perflint] Implement quick-fix for manual-list-comprehension (PERF401) (#13919)
  • [pylint] Implement shallow-copy-environ (W1507) (#14241)
  • [ruff] Implement none-not-at-end-of-union (RUF036) (#14314)
  • [ruff] Implementation unsafe-markup-call from flake8-markupsafe plugin (RUF035) (#14224)
  • [ruff] Report problems for attrs dataclasses (RUF008, RUF009) (#14327)

Rule changes

  • [flake8-boolean-trap] Exclude dunder methods that define operators (FBT001) (#14203)
  • [flake8-pyi] Add "replace with Self" fix (PYI034) (#14217)
  • [flake8-pyi] Always autofix duplicate-union-members (PYI016) (#14270)
  • [flake8-pyi] Improve autofix for nested and mixed type unions for unnecessary-type-union (PYI055) (#14272)
  • [flake8-pyi] Mark fix as unsafe when type annotation contains comments for duplicate-literal-member (PYI062) (#14268)

Server

  • Use the current working directory to resolve settings from ruff.configuration (#14352)

Bug fixes

  • Avoid conflicts between PLC014 (useless-import-alias) and I002 (missing-required-import) by considering lint.isort.required-imports for PLC014 (#14287)
  • [flake8-type-checking] Skip quoting annotation if it becomes invalid syntax (TCH001)
  • [flake8-pyi] Avoid using typing.Self in stub files pre-Python 3.11 (PYI034) (#14230)
  • [flake8-pytest-style] Flag pytest.raises call with keyword argument expected_exception (PT011) (#14298)
  • [flake8-simplify] Infer "unknown" truthiness for literal iterables whose items are all unpacks (SIM222) (#14263)
  • [flake8-type-checking] Fix false positives for typing.Annotated (TCH001) (#14311)
  • [pylint] Allow await at the top-level scope of a notebook (PLE1142) (#14225)
  • [pylint] Fix miscellaneous issues in await-outside-async detection (PLE1142) (#14218)
  • [pyupgrade] Avoid applying PEP 646 rewrites in invalid contexts (UP044) (#14234)
  • [pyupgrade] Detect permutations in redundant open modes (UP015) (#14255)
  • [refurb] Avoid triggering hardcoded-string-charset for reordered sets (FURB156) (#14233)
  • [refurb] Further special cases added to verbose-decimal-constructor (FURB157) (#14216)
  • [refurb] Use UserString instead of non-existent UserStr (FURB189) (#14209)
  • [ruff] Avoid treating lowercase letters as # noqa codes (RUF100) (#14229)
  • [ruff] Do not report when Optional has no type arguments (RUF013) (#14181)

Documentation

  • Add "Notebook behavior" section for F704, PLE1142 (#14266)
  • Document comment policy around fix safety (#14300)
Commits
  • ed7b98c Bump version to 0.7.4 (#14358)
  • 6591775 [flake8-type-checking] Skip quoting annotation if it becomes invalid syntax...
  • 1f82731 Use CWD to resolve settings from ruff.configuration (#14352)
  • 874da9c [red-knot] Display raw characters for string literal (#14351)
  • 375cead Sync vendored typeshed stubs (#14350)
  • 9ec690b [red-knot] Add support for string annotations (#14151)
  • a48d779 [red-knot] function signature representation (#14304)
  • ba6c7f6 [pylint] Remove check for dot in alias name in `useless-import-alias (PLC04...
  • 8095ff0 enforce required imports even with useless alias (#14287)
  • 24cd592 Avoid module lookup for known classes when possible (#14343)
  • Additional commits viewable in compare view


Most Recent Ignore Conditions Applied to This Pull Request | Dependency Name | Ignore Conditions | | --- | --- | | ruff | [>= 0.4.a, < 0.5] | | ruff | [>= 0.5.a, < 0.6] |

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 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)
coderabbitai[bot] commented 3 days ago

[!IMPORTANT]

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit , please review it.` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` - `@coderabbitai help me debug CodeRabbit configuration file.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (Invoked using PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. ### Other keywords and placeholders - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. - Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description. - Add `@coderabbitai` anywhere in the PR title to generate the title automatically. ### CodeRabbit Configuration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit. - Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
dependabot[bot] commented 2 days ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.