⬆️ Update dependency ruff to v0.1.0 #159
Merged
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 - "before 2am" (UTC), 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.
This PR has been generated by Mend Renovate. View repository job log here.