β¬οΈ π οΈ(deps): update dependency ruff to ^0.1.0 #320
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.0.292
->^0.1.0
Release Notes
astral-sh/ruff (ruff)
v0.1.0
Compare Source
Breaking changes
format
setting has been removed (#β7984)format
setting cannot be used to configure the output format, useoutput-format
insteadRUFF_FORMAT
environment variable is ignored, useRUFF_OUTPUT_FORMAT
instead--format
option has been removed fromruff check
, use--output-format
insteadRule changes
reimplemented-starmap
(FURB140
) to catch calls with a single and starred argument (#β7768)RUF015
(#β7848)SIM15
to allowopen
followed byclose
(#β7916)msgspec.Struct
default-copy semantics inRUF012
(#β7786)sqlalchemy
methods to `flake8-boolean-trap`` exclusion list (#β7874)PLR1714
(#β7910)PIE804
(#β7884)PLC0208
(#β7887)PYI055
(#β7886)non-pep695-type-alias
to require--unsafe-fixes
outside of stub files (#β7836)UP018
(#β7913)PLW3201
to supportEnum
sunder names (#β7987)Preview features
unnecessary-key-check
to simplifykey in dct and dct[key]
todct.get(key)
(#β7895)assignment-in-assert
to prevent walrus expressions in assert statements (#β7856)refurb
] Addsingle-item-membership-test
(FURB171
) (#β7815)pylint
] Addand-or-ternary
(R1706
) (#β7811)New rules are added in preview.
Configuration
unsafe-fixes
setting (#β7769)extend-safe-fixes
andextend-unsafe-fixes
for promoting and demoting fixes (#β7841)CLI
--unsafe-fixes
option for opt-in to display and apply unsafe fixes (#β7769)--format
option in warning (#β7837)--check
(#β7788)check --diff
to include unsafe fix hints (#β7790)cell
field to JSON output format (#β7664)Safe
,Unsafe
, andDisplay
(#β7843)Bug fixes
SIM110
with a yield in the condition (#β7801)C414
fixes (#β7775)unnecessary-enumerate
len
suggestion (#β7781)SIM101
(#β7798)E251
false positive inside f-strings (#β7894)stdin
(#β7789)ruff rule
(#β7812)--unfixable
inISC
rules (#β7917)PIE804
(#β7922)PTH118
forPath.joinpath
with starred arguments (#β7852)outdated-version-block
when using greater than comparisons (#β7920)gettext
calls (#β7898)PLR6301
(#β7933)TCH004
(#β7968)cache-dir
relative to project root (#β7962)TCH003
(#β7954)line-length
(#β7883)coalesce
keyword (#β7876)Documentation
reimplemented-starmap
performance effects (#β7846)PLR6301
(#β7831)UP038
docs to note that it results in slower code (#β7872)unnecessary-subscript-reversal
(#β7774)FURB177
example (#β7832)Formatter
ruff format
message (#β7867)ruff_python_formatter
generate.py comment (#β7850)Playground
Quick Fix
action (#β7824)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.
This PR has been generated by Mend Renovate. View repository job log here.