Skip to content

Comments

⬆️ Update dependency ruff to v0.2.2#344

Merged
renovate[bot] merged 1 commit intomainfrom
renovate/ruff-0.x
Feb 19, 2024
Merged

⬆️ Update dependency ruff to v0.2.2#344
renovate[bot] merged 1 commit intomainfrom
renovate/ruff-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 19, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ruff (source, changelog) 0.2.1 -> 0.2.2 age adoption passing confidence

Release Notes

astral-sh/ruff (ruff)

v0.2.2

Compare Source

Highlights include:

  • Initial support formatting f-strings (in --preview).
  • Support for overriding arbitrary configuration options via the CLI through an expanded --config
    argument (e.g., --config "lint.isort.combine-as-imports=false").
  • Significant performance improvements in Ruff's lexer, parser, and lint rules.
Preview features
  • Implement minimal f-string formatting (#​9642)
  • [pycodestyle] Add blank line(s) rules (E301, E302, E303, E304, E305, E306) (#​9266)
  • [refurb] Implement readlines_in_for (FURB129) (#​9880)
Rule changes
  • [ruff] Ensure closing parentheses for multiline sequences are always on their own line (RUF022, RUF023) (#​9793)
  • [numpy] Add missing deprecation violations (NPY002) (#​9862)
  • [flake8-bandit] Detect mark_safe usages in decorators (#​9887)
  • [ruff] Expand asyncio-dangling-task (RUF006) to include new_event_loop (#​9976)
  • [flake8-pyi] Ignore 'unused' private type dicts in class scopes (#​9952)
Formatter
  • Docstring formatting: Preserve tab indentation when using indent-style=tabs (#​9915)
  • Disable top-level docstring formatting for notebooks (#​9957)
  • Stabilize quote-style's preserve mode (#​9922)
CLI
  • Allow arbitrary configuration options to be overridden via the CLI (#​9599)
Bug fixes
  • Make show-settings filters directory-agnostic (#​9866)
  • Respect duplicates when rewriting type aliases (#​9905)
  • Respect tuple assignments in typing analyzer (#​9969)
  • Use atomic write when persisting cache (#​9981)
  • Use non-parenthesized range for DebugText (#​9953)
  • [flake8-simplify] Avoid false positive with async for loops (SIM113) (#​9996)
  • [flake8-trio] Respect async with in timeout-without-await (#​9859)
  • [perflint] Catch a wider range of mutations in PERF101 (#​9955)
  • [pycodestyle] Fix E30X panics on blank lines with trailing white spaces (#​9907)
  • [pydocstyle] Allow using parameters as a subsection header (D405) (#​9894)
  • [pydocstyle] Fix blank-line docstring rules for module-level docstrings (#​9878)
  • [pylint] Accept 0.0 and 1.0 as common magic values (PLR2004) (#​9964)
  • [pylint] Avoid suggesting set rewrites for non-hashable types (#​9956)
  • [ruff] Avoid false negatives with string literals inside of method calls (RUF027) (#​9865)
  • [ruff] Fix panic on with f-string detection (RUF027) (#​9990)
  • [ruff] Ignore builtins when detecting missing f-strings (#​9849)
Performance
  • Use memchr for string lexing (#​9888)
  • Use memchr for tab-indentation detection (#​9853)
  • Reduce Result<Tok, LexicalError> size by using Box<str> instead of String (#​9885)
  • Reduce size of Expr from 80 to 64 bytes (#​9900)
  • Improve trailing comma rule performance (#​9867)
  • Remove unnecessary string cloning from the parser (#​9884)

Configuration

📅 Schedule: Branch creation - "before 6am every weekday" in timezone Europe/Amsterdam, 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 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 added dependencies Upgrade or downgrade of project dependencies. python labels Feb 19, 2024
@renovate renovate bot enabled auto-merge (rebase) February 19, 2024 04:30
@codecov
Copy link

codecov bot commented Feb 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (762aa29) 100.00% compared to head (5745b4a) 100.00%.

❗ Current head 5745b4a differs from pull request most recent head 9be7ae5. Consider uploading reports for the commit 9be7ae5 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #344   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          165       165           
  Branches        31        31           
=========================================
  Hits           165       165           

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

@renovate renovate bot force-pushed the renovate/ruff-0.x branch from 5745b4a to 9be7ae5 Compare February 19, 2024 06:06
@renovate renovate bot merged commit 7ebcb43 into main Feb 19, 2024
@renovate renovate bot deleted the renovate/ruff-0.x branch February 19, 2024 06:07
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Upgrade or downgrade of project dependencies. python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants