Update dependency ruff to v0.1.3 #1810
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.3Release Notes
astral-sh/ruff (ruff)
v0.1.3Compare Source
This release includes a variety of improvements to the Ruff formatter, removing several known and
unintentional deviations from Black.
Formatter
None,TrueandFalse(#8189)isortsettings (#8192)isort.force-single-lineis true (#8244)SourceKind::difffor formatter (#8240)fmt:offwith trailing child comment (#8234)IpyEscapeCommand(#8207)Linter
pylint] Add buffer methods tobad-dunder-method-name(PLW3201) exclusions (#8190)externalcodes setting inunused-noqa(#8177)line-lengthsetting for isort in lieu ofpycodestyle.max-line-length(#8235)unnecessary-paren-on-raise-exceptionto unsafe for unknown types (#8231)W605(#8255)Documentation
unused-noqa(#8172)externaloption tounused-noqadocumentation (#8171)magic-trailing-commaoption in README (#8200)v0.1.2Compare Source
This release includes the Beta version of the Ruff formatter — an extremely fast, Black-compatible Python formatter.
Try it today with
ruff format! Check out the blog post and read the docs.Preview features
pylint] Implementnon-ascii-module-import(C2403) (#8056)pylint] implementnon-ascii-name(C2401) (#8038)pylint] Implement unnecessary-lambda (W0108) (#7953)refurb] Implementread-whole-file(FURB101) (#7682)E223,E224, andE242(#8143)E225,E226,E227, andE228(#8136)E252(#8142)E261(#8114)E273andE274(#8144)E275(#8133)SIM401to catch ternary operations (#7415)E721to allowisandisnot for direct type comparisons (#7905)Rule changes
backports.strenumtodeprecated-imports(#8113)SIM112to ignorehttps_proxy,http_proxy, andno_proxy(#8140)literal-membership(PLR6201) to be unsafe (#8097)mutable-argument-defaults(B006) to be unsafe (#8108)Formatter
line-endingdefault toauto(#8057)has_own_parentheses(#8100)--line-lengthoption fromformatcommand (#8131)line-lengthdocumentation (#8150)CLI
ruff formatcommand in help menus (#8167)ruff versioncommand with long version display (#8034)Configuration
pycodestyle.max-line-lengthoption (#8039)Bug fixes
sys.version_infoslices inoutdated-version-block(#8112)TYPE_CHECKINGblocks (#8072)Documentation
too-many-argumentslint (#8092)extend-unsafe-fixesandextend-safe-fixesexample (#8139)flake8-import-conventionsoptions (#8115)OptionsJSON schema description (#8081)pytext->pytest) (#8117)magic-value-comparisonexample in docs (#8111)v0.1.1Compare Source
Rule changes
escape-sequence-in-docstring(D301) (#7970)Configuration
#(deprecated)attribute in configuration options (#8035)[format|lint].excludeoptions (#8000)tab-sizesetting in formatter (#8006)lint.preview(#8002)Preview features
pylint] Implementliteral-membership(PLR6201) (#7973)pylint] Implementtoo-many-boolean-expressions(PLR0916) (#7975)pylint] Implementmisplaced-bare-raise(E0704) (#7961)pylint] Implementglobal-at-module-level(W0604) (#8058)pylint] Implementunspecified-encoding(PLW1514) (#7939)triple-single-quotes(D300) (#7967)Formatter
ruff format(#7878)--target-versiontoruff format(#8055)inkeyword (#8054)--diffoption toruff format(#7937)passover ellipsis in non-function/class contexts (#8049)Bug fixes
bad-dunder-method-namefor_(#8015)URLOpenaudit (#8047)iteration-over-setto preserve whitespace and comments (#8001)Documentation
B005docs (#8028)--output-format(#8014)lint.previewandformat.preview(#8032)RuleGroup::Preview. (#7989)v0.1.0Compare Source
This is the first release which uses the
CHANGELOGfile. See GitHub Releases for prior changelog entries.Read Ruff's new versioning policy.
Breaking changes
formatsetting has been removed (#7984)formatsetting cannot be used to configure the output format, useoutput-formatinsteadRUFF_FORMATenvironment variable is ignored, useRUFF_OUTPUT_FORMATinstead--formatoption has been removed fromruff check, use--output-formatinsteadRule changes
reimplemented-starmap(FURB140) to catch calls with a single and starred argument (#7768)RUF015(#7848)SIM15to allowopenfollowed byclose(#7916)msgspec.Structdefault-copy semantics inRUF012(#7786)sqlalchemymethods to `flake8-boolean-trap`` exclusion list (#7874)PLR1714(#7910)PIE804(#7884)PLC0208(#7887)PYI055(#7886)non-pep695-type-aliasto require--unsafe-fixesoutside of stub files (#7836)UP018(#7913)PLW3201to supportEnumsunder names (#7987)Preview features
unnecessary-key-checkto simplifykey in dct and dct[key]todct.get(key)(#7895)assignment-in-assertto 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-fixessetting (#7769)extend-safe-fixesandextend-unsafe-fixesfor promoting and demoting fixes (#7841)CLI
--unsafe-fixesoption for opt-in to display and apply unsafe fixes (#7769)--formatoption in warning (#7837)--check(#7788)check --diffto include unsafe fix hints (#7790)cellfield to JSON output format (#7664)Safe,Unsafe, andDisplay(#7843)Bug fixes
SIM110with a yield in the condition (#7801)C414fixes (#7775)unnecessary-enumeratelensuggestion (#7781)SIM101(#7798)E251false positive inside f-strings (#7894)stdin(#7789)ruff rule(#7812)--unfixableinISCrules (#7917)PIE804(#7922)PTH118forPath.joinpathwith starred arguments (#7852)outdated-version-blockwhen using greater than comparisons (#7920)gettextcalls (#7898)PLR6301(#7933)TCH004(#7968)cache-dirrelative to project root (#7962)TCH003(#7954)line-length(#7883)coalescekeyword (#7876)Documentation
reimplemented-starmapperformance effects (#7846)PLR6301(#7831)UP038docs to note that it results in slower code (#7872)unnecessary-subscript-reversal(#7774)FURB177example (#7832)Formatter
ruff formatmessage (#7867)ruff_python_formattergenerate.py comment (#7850)Playground
Quick Fixaction (#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.