Update dependency ruff to v0.1.11 - autoclosed #83
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/ruff-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
==0.0.278
->==0.1.11
Release Notes
astral-sh/ruff (ruff)
v0.1.11
Compare Source
Preview features
pylint
] Implementsuper-without-brackets
(W0245
) (#9257)Bug fixes
python -m ruff
invocations (#9367)Documentation
relative-imports
message (#9365)yield-in-for-loop
(#9364)v0.1.10
Compare Source
Preview features
dummy_implementations
preview style formatting (#9240)with
statements (#9222)flake8-pyi
] Implementgenerator-return-from-iter-method
(PYI058
) (#9313)pylint
] Implementempty-comment
(PLR2044
) (#9174)refurb
] Implementbit-count
(FURB161
) (#9265)ruff
] Addnever-union
rule to detect redundanttyping.NoReturn
andtyping.Never
(#9217)CLI
Configuration
Bug fixes
asyncio-dangling-task
for nonlocal and global bindings (#9263)__str__
definitions from super classes (#9338)unused-noqa
viaper-file-ignores
(#9300)typing_extensions
members as typing aliases (#9335)Display
for formatter parse errors (#9316)flake8-annotations
] Avoid adding return types to stub methods (#9277)flake8-annotations
] Respect mixedreturn
andraise
cases in return-type analysis (#9310)flake8-bandit
] Don't report violations whenSafeLoader
is imported fromyaml.loader
(S506
) (#9299)pylint
] Avoid panic when comment is preceded by Unicode (#9331)pylint
] ChangePLR0917
error message to match otherPLR09XX
messages (#9308)refurb
] Avoid false positives formath-constant
(FURB152
) (#9290)Documentation
perflint
] DocumentPERF102
fix un-safety (#9351)pyupgrade
] DocumentUP007
fix un-safety (#9306)v0.1.9
Compare Source
Breaking changes
Preview features
pylint
] Implementtoo-many-locals
(PLR0914
) (#9163)reimplemented_operator
(FURB118) (#9171)no_blank_line_before_class_docstring
preview style (#9154)Rule changes
CONSTANT_CASE
variables are improperly flagged for yoda violation (SIM300
) (#9164)flake8-pyi
] Cover ParamSpecs and TypeVarTuples (PYI018
) (#9198)flake8-bugbear
] Add fix forzip-without-explicit-strict
(B905
) (#9176)print
andpprint
statements (T201
,T203
) (#9208)Never
toNoReturn
in auto-typing in Python >= 3.11 (ANN201
) (#9213)Formatter
can_omit_optional_parentheses
: Exit early for unparenthesized expressions (#9125)dynamic
mode with doctests so that it doesn't exceed configured line width (#9129)can_omit_optional_parentheses
for expressions with a right most fstring (#9124)target_version
to formatter options (#9220)CLI
ruff format --check
to display message for already formatted files (#9153)Bug fixes
operator.contains
(#9192)D208
with multibyte indent (#9147)NoReturn
in auto-return-typing (#9206)typing
fromexempt-modules
(#9214)mutable-class-default
violations for Pydantic subclasses (#9187)PYI055
autofix (#9161)asyncio-dangling-task
violations on shadowed bindings (#9215)Documentation
v0.1.8
Compare Source
This release includes opt-in support for formatting Python snippets within
docstrings via the
docstring-code-format
setting.Check out the blog post for more details!
Preview features
"preserve"
quote-style to mimic Black's skip-string-normalization (#8822)prefer_splitting_right_hand_side_of_assignments
preview style (#8943)pycodestyle
] Add fix forunexpected-spaces-around-keyword-parameter-equals
(#9072)pycodestyle
] Add fix for comment-related whitespace rules (#9075)pycodestyle
] Allowsys.path
modifications between imports (#9047)refurb
] Implementhashlib-digest-hex
(FURB181
) (#9077)Rule changes
flake8-type-checking
rules to automatically quote runtime-evaluated references (#6001)flake8-annotations
] AvoidANN2xx
fixes for abstract methods with empty bodies (#9034)flake8-self
] Ignore underscore references in type annotations (#9036)pep8-naming
] Allow class names whenapps.get_model
is a non-string (#9065)pycodestyle
] Allowmatplotlib.use
calls to intersperse imports (#9094)pyflakes
] Support fixing unused assignments in tuples by renaming variables (F841
) (#9107)pylint
] Add fix forsubprocess-run-without-check
(PLW1510
) (#6708)Formatter
docstring-code-format
knob to enable docstring snippet formatting (#8854)CLI
--output-format
(#9078)Bug fixes
flake8-err-msg
] AllowEM
fixes even ifmsg
variable is defined (#9059)flake8-pie
] Prevent keyword arguments duplication (#8450)flake8-pie
] Respect trailing comma inunnecessary-dict-kwargs
(PIE804
) (#9015)flake8-raise
] Avoid removing parentheses on ctypes.WinError (#9027)isort
] Avoid invalid combination offorce-sort-within-types
andlines-between-types
(#9041)isort
] Ensure that from-style imports are always ordered first in__future__
(#9039)pycodestyle
] Allow tab indentation before keyword (#9099)pylint
] Ignore@overrides
and@overloads
fortoo-many-positional
(#9000)pyupgrade
] Enableprintf-string-formatting
fix with comments on right-hand side (#9037)refurb
] Makemath-constant
(FURB152
) rule more targeted (#9054)refurb
] Support floating-point base inredundant-log-base
(FURB163
) (#9100)ruff
] Detectunused-asyncio-dangling-task
(RUF006
) on unused assignments (#9060)v0.1.7
Compare Source
Preview features
fix_power_op_line_length
preview style (#8947)flake8-annotations
] Enable auto-return-type involvingOptional
andUnion
annotations (#8885)flake8-bandit
] Implementdjango-raw-sql
(S611
) (#8651)flake8-bandit
] Implementtarfile-unsafe-members
(S202
) (#8829)flake8-pyi
] Implement fix forunnecessary-literal-union
(PYI030
) (#7934)flake8-simplify
] Extenddict-get-with-none-default
(SIM910
) to non-literals (#8762)pylint
] - addunnecessary-list-index-lookup
(PLR1736
) + autofix (#7999)pylint
] - implement R0202 and R0203 with autofixes (#8335)pylint
] Implementrepeated-keyword
(PLe1132
) (#8706)pylint
] Implementtoo-many-positional
(PLR0917
) (#8995)pylint
] Implementunnecessary-dict-index-lookup
(PLR1733
) (#8036)refurb
] Implementredundant-log-base
(FURB163
) (#8842)Rule changes
flake8-boolean-trap
] Allow booleans in@override
methods (#8882)flake8-bugbear
] AvoidB015
,B018
for last expression in a cell (#8815)flake8-pie
] Allow ellipses for enum values in stub files (#8825)flake8-pyi
] Check PEP 695 type aliases forsnake-case-type-alias
andt-suffixed-type-alias
(#8966)flake8-pyi
] Check for kwarg and varargNoReturn
type annotations (#8948)flake8-simplify
] Omit select context managers fromSIM117
(#8801)pep8-naming
] Allow Django model loads innon-lowercase-variable-in-function
(N806
) (#8917)pycodestyle
] AvoidE703
for last expression in a cell (#8821)pycodestyle
] UpdateE402
to work at cell level for notebooks (#8872)pydocstyle
] AvoidD100
for Jupyter Notebooks (#8816)pylint
] Implement fix forunspecified-encoding
(PLW1514
) (#8928)Formatter
CLI
ruff check
andruff format
to default to the current directory (#8791)Configuration
pylint
] Defaultmax-positional-args
tomax-args
(#8998)pylint
] Addallow-dunder-method-names
setting forbad-dunder-method-name
(PLW3201
) (#8812)isort
] Add support forfrom-first
setting (#8663)isort
] Add support forlength-sort
settings (#8841)Bug fixes
@functools.singledispatch
(#8934)get_model
matching (#8965)@overload
and@override
methods for too-many-arguments checks (#8954)Mode::Expression
(#8880)pydantic_settings.BaseSettings
as having default copy semantics (#8793)NamedTuple
assignments (#8810)flake8-type-checking
(#8768)flake8-annotations
] Avoid filtering out un-representable types in return annotation (#8881)flake8-pie
] Retain extra ellipses in protocols and abstract methods (#8769)flake8-pyi
] Respect local enum subclasses insimple-defaults
(PYI052
) (#8767)flake8-trio
] Use correct range forTRIO115
fix (#8933)flake8-trio
] Use full arguments range for zero-sleep-call (#8936)isort
] fix: mark__main__
as first-party import (#8805)pep8-naming
] AvoidN806
errors for type alias statements (#8785)perflint
] AvoidPERF101
if there's an append in loop body (#8809)pycodestyle
] Allow space-before-colon after end-of-slice (#8838)pydocstyle
] Avoid non-character breaks inover-indentation
(D208
) (#8866)pydocstyle
] Ignore underlines when determining docstring logical lines (#8929)pylint
] Extendself-assigning-variable
to multi-target assignments (#8839)tryceratops
] Avoid repeated triggers in nestedtryceratops
diagnostics (#8772)Documentation
flake8-pyi
] Fix error int-suffixed-type-alias
(PYI043
) example (#8963)flake8-pyi
] Improve motivation forcustom-type-var-return-type
(PYI019
) (#8766)v0.1.6
Compare Source
Preview features
flake8-boolean-trap
] Extendboolean-type-hint-positional-argument
(FBT001
) to include booleans in unions (#7501)flake8-pie
] Extendreimplemented-list-builtin
(PIE807
) todict
reimplementations (#8608)flake8-pie
] Extendunnecessary-pass
(PIE790
) to include ellipses (...
) (#8641)flake8-pie
] Implement fix forunnecessary-spread
(PIE800
) (#8668)flake8-quotes
] Implementunnecessary-escaped-quote
(Q004
) (#8630)pycodestyle
] Implement fix formultiple-spaces-after-keyword
(E271
) andmultiple-spaces-before-keyword
(E272
) (#8622)pycodestyle
] Implement fix formultiple-spaces-after-operator
(E222
) andmultiple-spaces-before-operator
(E221
) (#8623)pyflakes
] Extendis-literal
(F632
) to include comparisons against mutable initializers (#8607)pylint
] Implementredefined-argument-from-local
(PLR1704
) (#8159)pylint
] Implement fix forunnecessary-lambda
(PLW0108
) (#8621)refurb
] Implementif-expr-min-max
(FURB136
) (#8664)refurb
] Implementmath-constant
(FURB152
) (#8727)Rule changes
flake8-annotations
] Add autotyping-like return type inference for annotation rules (#8643)flake8-future-annotations
] Implement fix forfuture-required-type-annotation
(FA102
) (#8711)flake8-implicit-namespace-package
] Avoid missing namespace violations in scripts with shebangs (#8710)pydocstyle
] Updateover-indentation
(D208
) to preserve indentation offsets when fixing overindented lines (#8699)pyupgrade
] Refinetimeout-error-alias
(UP041
) to remove false positives (#8587)Formatter
await
formatting with fluent style (#8676)CLI
Configuration
isort
] Support disabling sections withno-sections = true
(#8657)pep8-naming
] Support local and dynamic class- and static-method decorators (#8592)pydocstyle
] Allow overriding pydocstyle convention rules (#8586)Bug fixes
trio.lowlevel
(#8730)PIE794
(#8634)EM
fixes (#7746)whitespace-before-punctuation
(E203
) (#8654)no-self-use
(#8637)PLW0129
(#8675)TYPE_CHECKING
blocks imported fromtyping_extensions
or_typeshed
(#8429)FURB113
autofix if comments are present (#8494)flake8-commas
(#8582)force-sort-within-sections
(#8665)Documentation
v0.1.5
Compare Source
Preview features
flake8-bandit
] Implementmako-templates
(S702
) (#8533)flake8-trio
] ImplementTRIO105
(#8490)flake8-trio
] ImplementTRIO109
(#8534)flake8-trio
] ImplementTRIO110
(#8537)flake8-trio
] ImplementTRIO115
(#8486)refurb
] Implementtype-none-comparison
(FURB169
) (#8487)E721
(#8491)SIM118
fix as safe when the expression is a known dictionary (#8525)Formatter
CLI
--extension
to override inference of source type from file extension (#8373)Configuration
extend_unsafe_fixes
andoverride extend_safe_fixes
(#8444)RUFF_NO_CACHE
environment variable (#8538)Bug fixes
E721
] Flag comparisons tomemoryview
(#8485)D301
autofix foru
prefixed strings (#8495)flake8-trio
rules whentrio
import is present (#8550)TRIO115
violations fortrio.sleep(...)
calls with non-number values (#8532)F841
false negative on assignment to multiple variables (#8489)Documentation
known-first-party
(#8562)project.requires-python
overtarget-version
(#8513)B008
documentation (#8501)v0.1.4
Compare Source
Preview features
flake8-trio
] Implementtimeout-without-await
(TRIO001
) (#8439)numpy
] Implement NumPy 2.0 migration rule (NPY200
) (#7702)pylint
] Implementbad-open-mode
(W1501
) (#8294)pylint
] Implementimport-outside-toplevel
(C0415
) rule (#5180)pylint
] Implementuseless-with-lock
(W2101
) (#8321)pyupgrade
] Implementtimeout-error-alias
(UP041
) (#8476)refurb
] Implementisinstance-type-none
(FURB168
) (#8308)RUF001
,RUF002
, andRUF003
(#4430)Formatter
fmt: skip
(#8273)fmt: off
(#8275)--line-length
option toformat
command (#8363)CLI
--output-format
toruff rule
andruff linter
(#8203)Bug fixes
--force-exclude
inlint.exclude
andformat.exclude
(#8393)--extend-per-file-ignores
on the CLI (#8329)bad-dunder-method-name
to permit__index__
(#8300)D300
when both triple quote styles are present (#8462)FStringRanges
(#8154)shell=True
for truthy, non-True
diagnostics (#8359)NamedTuple
rewrite with starred annotation (#8434)PLE1307
was raised when formatting%c
with characters (#8407)fixedOverflowWidgets
for playground popover (#8458)byte_bounds
as a non-backwards-compatible NumPy 2.0 change (#8474)Internals
--fix
and--diff
(#8316)v0.1.3
Compare Source
This release includes a variety of improvements to the Ruff formatter, removing several known and
unintentional deviations from Black.
Formatter
None
,True
andFalse
(#8189)isort
settings (#8192)isort.force-single-line
is true (#8244)SourceKind::diff
for formatter (#8240)fmt:off
with trailing child comment (#8234)IpyEscapeCommand
(#8207)Linter
pylint
] Add buffer methods tobad-dunder-method-name
(PLW3201
) exclusions (#8190)external
codes setting inunused-noqa
(#8177)line-length
setting for isort in lieu ofpycodestyle.max-line-length
(#8235)unnecessary-paren-on-raise-exception
to unsafe for unknown types (#8231)W605
(#8255)Documentation
unused-noqa
(#8172)external
option tounused-noqa
documentation (#8171)magic-trailing-comma
option in README (#8200)v0.1.2
Compare 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)E273
andE274
(#8144)E275
(#8133)SIM401
to catch ternary operations (#7415)E721
to allowis
andis
not for direct type comparisons (#7905)Rule changes
backports.strenum
todeprecated-imports
(#8113)SIM112
to ignorehttps_proxy
,http_proxy
, andno_proxy
(#8140)literal-membership
(PLR6201
) to be unsafe (#8097)mutable-argument-defaults
(B006
) to be unsafe (#8108)Formatter
line-ending
default toauto
(#8057)has_own_parentheses
(#8100)--line-length
option fromformat
command (#8131)line-length
documentation (#8150)CLI
ruff format
command in help menus (#8167)ruff version
command with long version display (#8034)Configuration
pycodestyle.max-line-length
option (#8039)Bug fixes
sys.version_info
slices inoutdated-version-block
(#8112)TYPE_CHECKING
blocks (#8072)Documentation
too-many-arguments
lint (#8092)extend-unsafe-fixes
andextend-safe-fixes
example (#8139)flake8-import-conventions
options (#8115)Options
JSON schema description (#8081)pytext
->pytest
) (#8117)magic-value-comparison
example in docs (#8111)v0.1.1
Compare Source
Preview features
dummy_implementations
preview style formatting (#9240)with
statements (#9222)flake8-pyi
] Implementgenerator-return-from-iter-method
(PYI058
) (#9313)pylint
] Implementempty-comment
(PLR2044
) (#9174)refurb
] Implementbit-count
(FURB161
) (#9265)ruff
] Addnever-union
rule to detect redundanttyping.NoReturn
andtyping.Never
(#9217)CLI
Configuration
Bug fixes
asyncio-dangling-task
for nonlocal and global bindings (#9263)__str__
definitions from super classes (#9338)unused-noqa
viaper-file-ignores
(#9300)typing_extensions
members as typing aliases (#9335)Display
for formatter parse errors (#9316)flake8-annotations
] Avoid adding return types to stub methods (#9277)flake8-annotations
] Respect mixedreturn
andraise
cases in return-type analysis (#9310)flake8-bandit
] Don't report violations whenSafeLoader
is imported fromyaml.loader
(S506
) (#9299)pylint
] Avoid panic when comment is preceded by Unicode (#9331)pylint
] ChangePLR0917
error message to match otherPLR09XX
messages (#9308)refurb
] Avoid false positives formath-constant
(FURB152
) (#9290)Documentation
perflint
] DocumentPERF102
fix un-safety (#9351)pyupgrade
] DocumentUP007
fix un-safety (#9306)v0.1.0
Compare Source
This is the first release which uses the
CHANGELOG
file. See GitHub Releases for prior changelog entries.Read Ruff's new versioning policy.
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)v0.0.292
Compare Source
What's Changed
Highlights
This release includes full support for Python 3.12 (out now!), including the new type parameter (PEP 695) and f-string syntaxes (PEP 701).
PEP 701 lifts many of the restrictions on f-strings that existed in the past, allowing for arbitrarily nested f-strings, consistent quote style within f-strings, and more, all of which are now supported by Ruff (thanks to @dhruvmanila in https://github.com/astral-sh/ruff/pull/7376).
Breaking Changes
format.quote-style
no longer affects triple-quoted strings, to align with common conventions as well as the guidance from PEP 8 and PEP 257 (see: https://github.com/astral-sh/ruff/pull/7680).line-too-long
(E501
) now ignores trailing pragma comments (like# type: ignore
and# noqa
) when computing line length (see: https://github.com/astral-sh/ruff/pull/7692). This is similar to flake8-bugbear's methodology for detecting overlong lines, and ensures that adding pragmas like# noqa
does not introduce further lint errors.Rules
refurb
] Implementprint-empty-string
(FURB105
) by @tjkuson in https://github.com/astral-sh/ruff/pull/7617flake8-bandit
] Implementweak-cryptographic-key
(S505
) by @mkniewallner in https://github.com/astral-sh/ruff/pull/7703refurb
] Implementimplicit-cwd
(FURB177
) by @danparizher in https://github.com/astral-sh/ruff/pull/7704unnecessary-pass
(PIE790
) now flags all unnecessarypass
statements; previously, the rule only flaggedpass
statements that followed a docstring in a two-statement body (see: https://github.com/astral-sh/ruff/pull/7697).Settings
lint
section to Ruff configuration by @MichaReiser in https://github.com/astral-sh/ruff/pull/7549explicit-preview-rules
to toggle explicit selection of preview rules by @zanieb in https://github.com/astral-sh/ruff/pull/7390stdout
by @charliermarsh in https://github.com/astral-sh/ruff/pull/7748unnecessary-pass
(PIE790
) to trigger on all unnecessarypass
statements by @tjkuson in https://github.com/astral-sh/ruff/pull/7697Bug Fixes
PT022
autofix by @dhruvmanila in https://github.com/astral-sh/ruff/pull/7613builtin.open()
withPath.open()
if the latter doesn't support all options by @konstin in https://github.com/astral-sh/ruff/pull/7637Expr::Name
checks to rules which useis_logger_candidate
by @qdegraaf in https://github.com/astral-sh/ruff/pull/7521__all__
assignments by @charliermarsh in https://github.com/astral-sh/ruff/pull/7673commented-out-code
by @tjkuson in https://github.com/astral-sh/ruff/pull/7523unnecessary-pass
by @charliermarsh in https://github.com/astral-sh/ruff/pull/7715quadratic-list-summation
by @charliermarsh in https://github.com/astral-sh/ruff/pull/7719NotebookIndex
forDiagnostics
on stdin by @dhruvmanila in https://github.com/astral-sh/ruff/pull/7663LexError
for dedent to incorrect level by @MichaReiser in https://github.com/astral-sh/ruff/pull/7638DeprecatedLogWarn
to check forExpr::Atrribute
calls by @qdegraaf in https://github.com/astral-sh/ruff/pull/7677Other Changes
commented-out-code
(~50-80%) by @charliermarsh in https://github.com/astral-sh/ruff/pull/7706New Contributors
Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.291...v0.0.292
v0.0.291
Compare Source
What's Changed
Deprecations
The
format
command-line argument and configuration option has been renamed tooutput-format
. While Ruff will continue to respectformat
when passed as a command-line argument or configuration option, this backwards-compatible support will be dropped in a future release. See: https://github.com/astral-sh/ruff/pull/7514.Rules
flake8-bandit
] ImplementS201
:flask-debug-true
by @mkniewallner in https://github.com/astral-sh/ruff/pull/7503flake8-bandit
] ImplementS507
:ssh_no_host_key_verification
by @mkniewallner in https://github.com/astral-sh/ruff/pull/7528flake8-logging
] ImplementLOG002
:invalid-get-logger-argument
by @dhruvmanila in https://github.com/astral-sh/ruff/pull/7399flake8-logging
] ImplementLOG007
:exception-without-exc-info
by @qdegraaf in https://github.com/astral-sh/ruff/pull/7410refurb
] ImplementFURB140
:reimplemented-starmap
by @SavchenkoValeriy in https://github.com/astral-sh/ruff/pull/7253refurb
] ImplementFURB148
:unnecessary-enumerate
by @tjkuson in https://github.com/astral-sh/ruff/pull/7454ruff
] Detectasyncio.get_running_loop
calls in RUF006 by @charliermarsh in https://github.com/astral-sh/ruff/pull/7562Settings
--no-X
variants in CLI help by @charliermarsh in https://github.com/astral-sh/ruff/pull/7504format
option tooutput-format
by @MichaReiser in https://github.com/astral-sh/ruff/pull/7514ruff rule
by @charliermarsh in https://github.com/astral-sh/ruff/pull/7560Bug Fixes
bad-dunder-method-name
to permitattrs
dunders by @tjkuson in https://github.com/astral-sh/ruff/pull/7472.exception()
calls by @charliermarsh in https://github.com/astral-sh/ruff/pull/7524PERF102
fixes by @charliermarsh in https://github.com/astral-sh/ruff/pull/7554os.error
as anOSError
alias by @charliermarsh in https://github.com/astral-sh/ruff/pull/7582bad-dunder-method-name
to permit__html__
by @jaap3 in https://github.com/astral-sh/ruff/pull/7492New Contributors
Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.290...v0.0.291
v0.0.290
Compare Source
What's Changed
Rules
deprecated-import
lists based on recenttyping-extensions
release by @charliermarsh in https://github.com/astral-sh/ruff/pull/7356UP040
by @nathanwhit in https://github.com/astral-sh/ruff/pull/6749Settings
Bug Fixes
C416
to catch tuple unpacking by @charliermarsh in https://github.com/astral-sh/ruff/pull/7363NURSERY
rule selctor in JSON Schema by @charliermarsh in https://github.com/astral-sh/ruff/pull/7374D411
by @charliermarsh in https://github.com/astral-sh/ruff/pull/7351Preview
What's this section?
flake8-logging
] New ruleundocumented-warn
(LOG009
) by @qdegraaf in https://github.com/astral-sh/ruff/pull/7249flake8-logging
] New ruledirect-logger-instantiation
(LOG001
) by @charliermarsh in https://github.com/astral-sh/ruff/pull/7397flake8-logging
] New pluginflake8_logging
(LOG
) by @qdegraaf in https://github.com/astral-sh/ruff/pull/7249perflint
] Addmanual-dict-comprehsion
(PERF403
) by @qdegraaf in https://github.com/astral-sh/ruff/pull/6132pylint
] New ruletoo-many-public-methods
(PLR0904
) by @jelly in https://github.com/astral-sh/ruff/pull/6179refurb
] New ruleno-slice-copy
(FURB145
) by @tjkuson in https://github.com/astral-sh/ruff/pull/7007PREVIEW
rule selector by @zanieb in https://github.com/astral-sh/ruff/pull/7389pre-commit
support for the alpha formatter by @zanieb in https://github.com/astral-sh/ruff-pre-commit/pull/50New Contributors
Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.289...v0.0.290
v0.0.289
Compare Source
What's Changed
Bug Fixes
@override
method when enforcingbad-dunder-name
rule by @brendonh8 in https://github.com/astral-sh/ruff/pull/7224NotebookIndex
to the cache by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6863Preview
This release includes a new preview mode which can be used to opt-in to unstable rules and features.
--preview
option in the CLI help menu by @zanieb in https://github.com/astral-sh/ruff/pull/7274See the documentation and versioning discussion for more details.
New Contributors
Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.288...v0.0.289
v0.0.288
Compare Source
What's Changed
Breaking Changes
Rules
ruff
]RUF001
: Remove autofix for ambiguous unicode rule by @charliermarsh in https://github.com/astral-sh/ruff/pull/7168Settings
flake8-self
]SLF001
: Addextend-ignore-names
option by @jaap3 in https://github.com/astral-sh/ruff/pull/7194Bug Fixes
flake8-bugbear
]B006
: Add newline if fix is at end-of-file by @charliermarsh in https://github.com/astral-sh/ruff/pull/7090B006
: Fix function docstring followed by whitespace but no newline by @zanieb in https://github.com/astral-sh/ruff/pull/7160B009
: Parenthesize expressions when converting to attribute access by @charliermarsh in https://github.com/astral-sh/ruff/pull/7091B009
,B010
: Fixgetattr
calls onint
literals by @density in https://github.com/astral-sh/ruff/pull/7057B013
: Supported starred exceptions in length-one tuple detection by @charliermarsh in https://github.com/astral-sh/ruff/pull/7080B013
: Insert required space when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7148flake8-comprehensions
]C402
: Add required space when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7152C404
Add required space when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7185C416
Add required space to fix by @charliermarsh in https://github.com/astral-sh/ruff/pull/7204C417
: Support length-2 lists in dictionary comprehension rewrites by @charliermarsh in https://github.com/astral-sh/ruff/pull/7081C417
: Parenthesize targets if necessary by @charliermarsh in https://github.com/astral-sh/ruff/pull/7189flake8-return
]RET504
: Add space after return when inlining number by @charliermarsh in https://github.com/astral-sh/ruff/pull/7116flake8-simplify
]SIM105
: Avoid attempting to fix violations with multi-statement lines by @charliermarsh in https://github.com/astral-sh/ruff/pull/7191SIM105
Avoid inserting an extra newline for fixes by @charliermarsh in https://github.com/astral-sh/ruff/pull/7221SIM118
: Add required space when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7150SIM118
: delete.keys()
rather than replace expression by @charliermarsh in https://github.com/astral-sh/ruff/pull/7223SIM210
: Retain parentheses when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7118SIM222
: Add parentheses when simplifying conditions by @charliermarsh in https://github.com/astral-sh/ruff/pull/7117SIM300
: Add required space when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7167flake8-pytest-style
]PT018
: Split withinnot
, rather than outside ofnot
by @charliermarsh in https://github.com/astral-sh/ruff/pull/7151flynt
]FLY002
: Add required space for fixes by @charliermarsh in https://github.com/astral-sh/ruff/pull/7222numpy
]NPY001
: Avoid attempting to fix with overridden builtins by @charliermarsh in https://github.com/astral-sh/ruff/pull/7187NPY003
: Use symbol import for replacement by @charliermarsh in https://github.com/astral-sh/ruff/pull/7083pandas-vet
]PD002
: Handle parenthesized calls by @charliermarsh in https://github.com/astral-sh/ruff/pull/7111pep8-naming
]N806
: Avoid triggering onTypeAlias
assignments by @charliermarsh in https://github.com/astral-sh/ruff/pull/7119pydocstyle
]D204
: Fix when there's a semicolon after a docstring by @konstin in https://github.com/astral-sh/ruff/pull/7174D213
,D400
: Ignore single quote docstrings with newline escape by @konstin in https://github.com/astral-sh/ruff/pull/7173D417
: Fix error with function docstrings with dashed lines by @eronnen in https://github.com/astral-sh/ruff/pull/7251pyflakes
]F401
: Avoid panic with noqa import name by @charliermarsh in https://github.com/astral-sh/ruff/pull/7260F841
: Expand fixes to handle parenthesized targets by @charliermarsh in https://github.com/astral-sh/ruff/pull/7110pylint
]PLW3301
: Copy the starred argument as is for autofix by @dhruvmanila in https://github.com/astral-sh/ruff/pull/7177pyupgrade
]UP006
andUP007
: Add required space to fixes by @charliermarsh in https://github.com/astral-sh/ruff/pull/7202UP007
: Avoid attempting to fix invalidOptional
annotations by @charliermarsh in https://github.com/astral-sh/ruff/pull/7079UP007
: Fix syntax error in autofix by @charliermarsh in https://github.com/astral-sh/ruff/pull/7137UP021
: Avoid adding duplicatetext
keyword tosubprocess.run
by @charliermarsh in https://github.com/astral-sh/ruff/pull/7112UP022
: Avoid adding duplicatecapture_output
keyword tosubprocess.run
by @charliermarsh in https://github.com/astral-sh/ruff/pull/7113UP028
: Support parenthesized expressions by @charliermarsh in https://github.com/astral-sh/ruff/pull/7114UP022
: Avoid fixing whencapture_output
is provided by @charliermarsh in https://github.com/astral-sh/ruff/pull/7149UP024
: Add required space when fixing by @charliermarsh in https://github.com/astral-sh/ruff/pull/7171ruff
]RUF017
: Avoid duplicate fixes for multi-import imports by @charliermarsh in https://github.com/astral-sh/ruff/pull/7063Other Changes
New Contributors
Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.287...v0.0.288
v0.0.287
Compare Source
What's Changed
Rules
repeated-append
rule (FURB113
) by @SavchenkoValeriy in https://github.com/astral-sh/ruff/pull/6702delete-full-slice
rule (FURB131
) by @SavchenkoValeriy in https://github.com/astral-sh/ruff/pull/6897check-and-remove-from-set
rule (FURB132
) by @SavchenkoValeriy in https://github.com/astral-sh/ruff/pull/6904Bug Fixes
PERF401
andPERF402
with type checks by @qdegraaf in https://github.com/astral-sh/ruff/pull/6994typename
is provided as a keyword argument by @charliermarsh in https://github.com/astral-sh/ruff/pull/6955missing_copyright_notice
by @WindowGenerator in https://github.com/astral-sh/ruff/pull/7029WithItem
ranges for parenthesized, non-as
items by @charliermarsh in https://github.com/astral-sh/ruff/pull/6782New Contributors
Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.286...v0.0.287
v0.0.286
Compare Source
What's Changed
New Rules
flake8-bugbear
] Updatefunction-call-in-argument-default
(B008
) to ignore arguments with immutable annotations by @zanieb in https://github.com/astral-sh/ruff/pull/6784flake8-bugbear
] Updatemutable-argument-default
(B006
) to useextend-immutable-calls
when determining if annotations are immutable by @zanieb in https://github.com/astral-sh/ruff/pull/6781flake8-pie
] Implementunnecessary-range-start
(PIE808
) by @harupy in https://github.com/astral-sh/ruff/pull/6690flake8-pytest-style
] Add autofix forPT014
by @harupy in https://github.com/astral-sh/ruff/pull/6698pylint
] Implementno-self-use
(R6301
) by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6574pylint
] Extendrepeated-equality-comparison-target
to check for mixed orderings and Yoda conditions. by @tjkuson in https://github.com/astral-sh/ruff/pull/6691Settings
detect-same-package
behavior configurable by @charliermarsh in https://github.com/astral-sh/ruff/pull/6833Bug Fixes
typing_extensions.TypeAlias
for PYI026 fixes on pre-3.10 by @charliermarsh in https://github.com/astral-sh/ruff/pull/6696repeated-equality-comparison-target
by @charliermarsh in https://github.com/astral-sh/ruff/pull/6705ctypes.WinError()
in flake8-raise by @charliermarsh in https://github.com/astral-sh/ruff/pull/6731eq-without-hash
when__hash__
is explicitly set toNone
by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6739native-literals
handling of int literal with attribute access by @zanieb in https://github.com/astral-sh/ruff/pull/6792uncessary-coding-comment
fix when there's leading content by @zanieb in https://github.com/astral-sh/ruff/pull/6775C417
forlambda
with default and variadic parameters by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6752networkx
to conventional aliases by @zanieb in https://github.com/astral-sh/ruff/pull/6778Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.285...v0.0.286
v0.0.285
Compare Source
What's Changed
New rules
flake8-pytest-style
] Implementpytest-unittest-raises-assertion
(PT027
) by @harupy in https://github.com/astral-sh/ruff/pull/6554flake8-pytest-style
] Implementpytest-duplicate-parametrize-test-cases
(PT014
) by @harupy in https://github.com/astral-sh/ruff/pull/6598flake8-tidy-imports
] Implementbanned-module-level-imports
(TID253
) by @durumu in https://github.com/astral-sh/ruff/pull/6378pylint
] Implementbad-dunder-name
(W3201
) (in the Ruff nursery) by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6486pylint
] Implementsubprocess-run-check
(W1510
) by @tjkuson in https://github.com/astral-sh/ruff/pull/6487ruff
] Implementquadratic-list-summation
(RUF017
) by @evanrittenhouse in https://github.com/astral-sh/ruff/pull/6489Rule changes
flake8-bugbear
] Add autofix forB006
by @qdegraaf in https://github.com/astral-sh/ruff/pull/6131flake8-pyi
] Avoid applyingPYI055
to runtime-evaluated annotations by @charliermarsh in https://github.com/astral-sh/ruff/pull/6457flake8-self
] Allowos._exit
accesses inSLF001
by @charliermarsh in https://github.com/astral-sh/ruff/pull/6490perflint
] IgnorePERF203
iftry
contains loop control flow statements by @evanrittenhouse in https://github.com/astral-sh/ruff/pull/6536pylint
] Check for invalid format type specifiers in nested replacements forPLE1300
by @zanieb in https://github.com/astral-sh/ruff/pull/6616tryceratops
] OmitNotImplementedError
fromTRY003
by @charliermarsh in https://github.com/astral-sh/ruff/pull/6568Settings
.ipynb
and.pyi
sources when linting from stdin by @charliermarsh in https://github.com/astral-sh/ruff/pull/6628raises_require_match_for
andraises_require_match_for
by @harupy in https://github.com/astral-sh/ruff/pull/6635Bug Fixes
lambda-assignment
fix always-manual in class bodies by @charliermarsh in https://github.com/astral-sh/ruff/pull/6626E721
by @charliermarsh in https://github.com/astral-sh/ruff/pull/6469E402
by @charliermarsh in https://github.com/astral-sh/ruff/pull/6526invalid-envvar-value
by @charliermarsh in https://github.com/astral-sh/ruff/pull/6538locals()
by @charliermarsh in https://github.com/astral-sh/ruff/pull/6578await
in Jupyter notebooks by @charliermarsh in https://github.com/astral-sh/ruff/pull/6607pandas#values
for stores, deletes, or class accesses by @charliermarsh in https://github.com/astral-sh/ruff/pull/6631E712
fix by @charliermarsh in https://github.com/astral-sh/ruff/pull/6575I002
by @durumu in https://github.com/astral-sh/ruff/pull/6523PLE1300
by @zanieb in https://github.com/astral-sh/ruff/pull/6616Playground
Performance
New Contributors
Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.284...v0.0.285
v0.0.284
Compare Source
What's Changed
This release fixes a few bugs. Notably, the previous release announced a breaking change where the default target
Python version changed from 3.10 to 3.8 but the change was not applied. Thanks to @rco-ableton for fixing this in
https://github.com/astral-sh/ruff/pull/6444
Bug Fixes
S108
if path is insidetempfile.*
call by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6416New Contributors
Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.283...v0.0.284
v0.0.283
Compare Source
What's Changed
Breaking Changes
Rules
flake8-pyi
]PYI019
: Detects if a type variable is used instead ofSelf
in return annotations by @qdegraaf in https://github.com/astral-sh/ruff/pull/6204flake8-pyi
]PYI051
: Detects unions ofLiteral
types by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6215flake8-pyi
]PYI055
: Detects unions oftype
s by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6316pylint
]E1300
: Detects invalid string format characters by @silvanocerza in https://github.com/astral-sh/ruff/pull/6171pyupgrade
]UP040
: Upgrades type alias annotations to use PEP-695 syntax by @zanieb in https://github.com/astral-sh/ruff/pull/6289Rule Changes
flake8-boolean-trap
]FBT003
: Addis_
andis_not
to excluded functions by @zanieb in https://github.com/astral-sh/ruff/pull/6307flake8-logging-format
] Allow capitalized names for logger candidate heuristic match by @charliermarsh in https://github.com/astral-sh/ruff/pull/6356flake8-pyi
] Applicable rules are now checked non-stub code by @andersk in https://github.com/astral-sh/ruff/pull/6297PYI013
:ellipsis-in-non-empty-class-body
PYI016
:duplicate-union-member
PYI018
:unused-private-type-var
PYI019
:custom-type-var-return-type
PYI024
:collections-named-tuple
PYI025
:unaliased-collections-abc-set-import
PYI030
:unnecessary-literal-union
PYI032
:any-eq-ne-annotation
PYI034
:non-self-return-type
PYI036
:bad-exit-annotation
PYI041
:redundant-numeric-union
PYI042
:snake-case-type-alias
PYI043
:t-suffixed-type-alias
PYI045
:iter-method-return-iterable
PYI046
:unused-private-protocol
PYI047
:unused-private-type-alias
PYI049
:unused-private-typed-dict
PYI050
:no-return-argument-annotation-in-stub
(Python ≥ 3.11)PYI051
:redundant-literal-union
PYI056
:unsupported-method-call-on-all
flake8-pyi
]PYI027
is being replaced byPYI022
/UP035
by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6354pydocstyle
]D103
: Don't require docstrings in.pyi
files by @charliermarsh in https://github.com/astral-sh/ruff/pull/6239pydocstyle
]D203
: Ignore same-line docstrings for lines-before and lines-after rules by @charliermarsh in https://github.com/astral-sh/ruff/pull/6344pylint
]PLE0605
: Allow generic tuple and list calls in__all__
by @charliermarsh in https://github.com/astral-sh/ruff/pull/6247pylint
]PLR0124
: Add detection of comparisons with built-in calls by @charliermarsh in https://github.com/astral-sh/ruff/pull/6324pyupgrade
]UP032
: Add support forawait
expressions in f-strings by @harupy in https://github.com/astral-sh/ruff/pull/6304pyupgrade
]UP032
: Add support for implicitly concatenated strings by @harupy in https://github.com/astral-sh/ruff/pull/6263pyupgrade
]UP032
: Add support for repeated format fields by @harupy in https://github.com/astral-sh/ruff/pull/6266ruff
]RUF012
: PermitClassVar
andFinal
without subscript by @bluetech in https://github.com/astral-sh/ruff/pull/6273Bug Fixes
flake8-bugbear
]B006
: Respecttyping_extensions
imports ofAnnotated
by @PIG208 in https://github.com/astral-sh/ruff/pull/6361flake8-pyi
]PYI019
: Fix panic with positional-only arguments by @charliermarsh in https://github.com/astral-sh/ruff/pull/6350flake8-use-pathlib
] Avoid raisingPTH206
withmaxsplit
by @charliermarsh in https://github.com/astral-sh/ruff/pull/6283flake8
]F841
: Update autofix to not remove Jupyer magic expressions by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6141pycodestyle
]E721
: Include comparisons to builtin types by @charliermarsh in https://github.com/astral-sh/ruff/pull/6325pycodestyle
]E721
: Match left-hand sidetypes()
call intypes-comparison
by @charliermarsh in https://github.com/astral-sh/ruff/pull/6326pyupgrade
]UP031
: Avoid auto-fixing if there are comments within the right-hand side by @harupy in https://github.com/astral-sh/ruff/pull/6364pyupgrade
]UP032
: Avoid auto-fixing if comments are present around format call arguments by @harupy in https://github.com/astral-sh/ruff/pull/6342pyupgrade
]UP032
: Improve invalid expression check by @harupy in https://github.com/astral-sh/ruff/pull/6308.format(...)
calls with too-few-arguments by @charliermarsh in https://github.com/astral-sh/ruff/pull/6401.gitignore
files in parent directories were incorrectly used by @charliermarsh in https://github.com/astral-sh/ruff/pull/6368Union
expressions by @charliermarsh in https://github.com/astral-sh/ruff/pull/6399Playground
Other Changes
New Contributors
Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.282...v0.0.283
v0.0.282
Compare Source
What's Changed
Bug Fixes
quoted-annotation
rule (#5766)" by @charliermarsh in https://github.com/astral-sh/ruff/pull/6237New Contributors
Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.281...v0.0.282
v0.0.281
Compare Source
What's Changed
See the release blog post for more, including detailed descriptions of any newly added rules.
New rules
flake8-pyi
] ImplementPYI018
by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6018flake8-pyi
] ImplementPYI047
by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6134flake8-pyi
] ImplementPYI049
by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6136flake8-pyi
] ImplementPYI056
by @LaBatata101 in https://github.com/astral-sh/ruff/pull/5959flake8-pyi
] ImplementPYI046
by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6098flake8-use-pathlib
] Implementglob
(PTH207
) by @sbrugman in https://github.com/astral-sh/ruff/pull/5939flake8-use-pathlib
] Implementos-sep-split
(PTH206
) by @sbrugman in https://github.com/astral-sh/ruff/pull/5936pycodestyle
] ImplementE241
andE242
(tab/multiple ws after commas) by @akx in https://github.com/astral-sh/ruff/pull/6094pylint
] Implementself-assigning-variable
(W0127
) by @tjkuson in https://github.com/astral-sh/ruff/pull/6015pylint
] Implementeq-without-hash
rule (PLW1641) by @jelly in https://github.com/astral-sh/ruff/pull/5955pylint
] Implementsubprocess-popen-preexec-fn
(W1509
) by @tjkuson in https://github.com/astral-sh/ruff/pull/5978Rule changes
flake8-bugbear
] ExtendsB002
to detect unary prefix decrement operators by @tjkuson in https://github.com/astral-sh/ruff/pull/5998flake8-pytest-style
] Avoid raising PT012 for simplewith
statements by @harupy in https://github.com/astral-sh/ruff/pull/6081flake8-pytest-style
] Allow pytest.raises body to contain a single func or class definition by @harupy in https://github.com/astral-sh/ruff/pull/6083flake8-simplify
] Extend SIM118 withnot in
by @sbrugman in https://github.com/astral-sh/ruff/pull/5995perflint
] SkipPERF203
violations for multi-statement loops by @charliermarsh in https://github.com/astral-sh/ruff/pull/6145pyupgrade
] Add support forint
,float
,bool
inUP018
by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6013tryceratops
] Add suggested fix forTRY201
by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6008Settings
logging.Logger
re-exports vialogger-objects
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5750max-complexity
to 10 for empty McCabe settings by @charliermarsh in https://github.com/astral-sh/ruff/pull/6073pep8-naming
]: New config optionextend-ignore-names
by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6169Bug Fixes
UP032
ifformat
call arguments contain multiline expressions by @harupy in https://github.com/astral-sh/ruff/pull/5971F507
false positive by @harupy in https://github.com/astral-sh/ruff/pull/5986Literal
members as expressions with__future__
by @charliermarsh in https://github.com/astral-sh/ruff/pull/6032x[:1]
-like slices in RUF015 by @charliermarsh in https://github.com/astral-sh/ruff/pull/6150self
accesses by @charliermarsh in https://github.com/astral-sh/ruff/pull/6165[
as an invalid noqa suffix by @charliermarsh in https://github.com/astral-sh/ruff/pull/5982explicit-string-concatenation
on single line by @tjkuson in https://github.com/astral-sh/ruff/pull/6028SIM102
to handle indentedelif
by @harupy in https://github.com/astral-sh/ruff/pull/6072PTH201
forPath("")
by @harupy in https://github.com/astral-sh/ruff/pull/6095SIM115
to coverpathlib.Path.open
by @harupy in https://github.com/astral-sh/ruff/pull/611--diff
for Jupyter Notebooks by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6149SIM105
for non-exceptions by @sbrugman in https://github.com/astral-sh/ruff/pull/5985New Contributors
Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.280...v0.0.281
v0.0.280
Compare Source
What's Changed
Bug Fixes
elif
andelse
branches during import sorting by @charliermarsh in https://github.com/astral-sh/ruff/pull/5964Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.279...v0.0.280
v0.0.279
Compare Source
What's Changed
Rules
flake8-pyi
] Implement flake8-pyi's PYI026 by @LaBatata101 in https://github.com/astral-sh/ruff/pull/5844flake8-pyi
] Implement flake8-pyi'sPYI017
by @qdegraaf in https://github.com/astral-sh/ruff/pull/5895flake8-pyi
] Implement flake8-pyi'sPYI036
by @density in https://github.com/astral-sh/ruff/pull/5668flake8-pyi
] Implement flake8-pyi'sPYI041
by @density in https://github.com/astral-sh/ruff/pull/5722flake8-use-pathlib
] Implementos-path-getsize
andos-path-get(a|m|c)-time
(PTH202-205
) by @sbrugman in https://github.com/astral-sh/ruff/pull/5835flake8-use-pathlib
] Implementpath-constructor-default-argument
(PTH201
) by @sbrugman in https://github.com/astral-sh/ruff/pull/5833pandas-vet
] Implement constant series rule (PD101
) by @sbrugman in https://github.com/astral-sh/ruff/pull/5802pylint
] Implement Pylint'sconsider-using-in
(PLR1714
) by @tjkuson in https://github.com/astral-sh/ruff/pull/5193Rule changes
flake8-annotations
] Check forAny
in other types forANN401
by @dhruvmanila in https://github.com/astral-sh/ruff/pull/5601flake8-bugbear
] Add autofix for B004 by @density in https://github.com/astral-sh/ruff/pull/5788flake8-bugbear
] RemoveB904
's lowercase exemption by @charliermarsh in https://github.com/astral-sh/ruff/pull/5751flake8-use-pathlib
] extend PTH118 withos.sep
by @sbrugman in https://github.com/astral-sh/ruff/pull/5935pyupgrade
] Expand scope ofquoted-annotation
rule (UP037
) by @charliermarsh in https://github.com/astral-sh/ruff/pull/5766pyupgrade
] Extend PEP 604 rewrites to support some quoted annotations by @charliermarsh in https://github.com/astral-sh/ruff/pull/5725ruff
] ExpandRUF015
to include all expression types by @charliermarsh in https://github.com/astral-sh/ruff/pull/5767Bug Fixes
Enum
-and-str
subclasses for slots enforcement by @charliermarsh in https://github.com/astral-sh/ruff/pull/5749sorted
with differing arguments by @density in https://github.com/astral-sh/ruff/pull/5761incorrect-dict-iterator
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5763lint_only
aware of the source kind by @dhruvmanila in https://github.com/astral-sh/ruff/pull/5876redefined-while-unused
violations in classes by @charliermarsh in https://github.com/astral-sh/ruff/pull/5926--add-noqa
by @dhruvmanila in https://github.com/astral-sh/ruff/pull/5727EXE001
andEXE002
on WSL by @tjkuson in https://github.com/astral-sh/ruff/pull/5735Expr::Call
branches by @charliermarsh in https://github.com/astral-sh/ruff/pull/5772SetComp
by @lkh42t in https://github.com/astral-sh/ruff/pull/5774runtime-import-in-type-checking-block
(TCH004
) behind enabled flag by @charliermarsh in https://github.com/astral-sh/ruff/pull/5789pandas-use-of-dot-read-table
rule to emit only whenread_table
is used on CSV data by @tjkuson in https://github.com/astral-sh/ruff/pull/5807NamedTuple
calls containing both a list of fields and keywords by @harupy in https://github.com/astral-sh/ruff/pull/5799noqa
warnings by @sobolevn in https://github.com/astral-sh/ruff/pull/5856respect_gitignore
when not in a git repo by @dhruvmanila in https://github.com/astral-sh/ruff/pull/5937New Contributors
Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.278...v0.0.279
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 Renovate Bot.
63b8007ea5
to44084332d1
Update dependency ruff to v0.1.0to Update dependency ruff to v0.1.144084332d1
to94a1df6c18
Update dependency ruff to v0.1.1to Update dependency ruff to v0.1.294a1df6c18
to6dc0567802
Update dependency ruff to v0.1.2to Update dependency ruff to v0.1.36dc0567802
to826a63ef41
Update dependency ruff to v0.1.3to Update dependency ruff to v0.1.4826a63ef41
toeedb422a39
Update dependency ruff to v0.1.4to Update dependency ruff to v0.1.5eedb422a39
tod6cb2ec0cd
Update dependency ruff to v0.1.5to Update dependency ruff to v0.1.6d6cb2ec0cd
toecb88edac1
Update dependency ruff to v0.1.6to Update dependency ruff to v0.1.7ecb88edac1
toeadb23d8e0
Update dependency ruff to v0.1.7to Update dependency ruff to v0.1.8eadb23d8e0
to5c70d81050
Update dependency ruff to v0.1.8to Update dependency ruff to v0.1.95c70d81050
to749b500677
Update dependency ruff to v0.1.9to Update dependency ruff to v0.1.10749b500677
tof18534af55
Update dependency ruff to v0.1.10to Update dependency ruff to v0.1.11Update dependency ruff to v0.1.11to Update dependency ruff to v0.1.11 - autoclosedPull request closed