chore(deps): update dependency ruff to v0.0.269 #606
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.252
->0.0.269
Release Notes
charliermarsh/ruff
v0.0.269
Compare Source
What's Changed
(This is a rerelease of
v0.0.268
, which didn't make it to PyPI due to user error. As such, the release notes are copied below.)pycodestyle
This release includes optimized implementations of a large portion of
pycodestyle
, for those that use Ruff without an autoformatter.In this initial release, the rules are being introduced under a "nursery" flag, which requires that users explicitly select them (e.g.,
select = ["E111"]
); in other words, these rules are not yet enabled viaselect = ["E"]
.If you're interested in testing the
pycodestyle
rules, you can enable them via:These rules will be included as part of the
E
category in a future release.Breaking Changes
pyupgrade
] Removekeep-runtime-typing
setting by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4427Rules
pylint
] Addduplicate-bases
rule by @alonme in https://github.com/charliermarsh/ruff/pull/4411pylint
] FixPLW3301
auto-fix with generators by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/4412flake8-async
] Implement flake8-async plugin by @qdegraaf in https://github.com/charliermarsh/ruff/pull/4432pyupgrade
] Enable automatic rewrites oftyping.Deque
andtyping.DefaultDict
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4420flake8-pyi
] Implementunannotated-assignment-in-stub
(PY052
) by @sladyn98 in https://github.com/charliermarsh/ruff/pull/4293tryceratops
] Implement TRY302 -raise
afterexcept
by @john-h-k in https://github.com/charliermarsh/ruff/pull/4461flake8-bandit
] Improve SQL injection detection logic (S608
) by @scop in https://github.com/charliermarsh/ruff/pull/4499flake8-todos
] Implementflake8_todos
by @evanrittenhouse in https://github.com/charliermarsh/ruff/pull/3921flake8-future-annotations
] Implementflake8-future-annotations
FA100 by @TylerYep in https://github.com/charliermarsh/ruff/pull/3979pycodestyle
rules by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3689pycodestyle
rules under new "nursery" category by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4407Settings
Bug Fixes
RUF010
autofix within f-strings by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/4423pd#at
and friends on non-subscripts by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4474New Contributors
Full Changelog: astral-sh/ruff@v0.0.267...v0.0.269
v0.0.267
Compare Source
Summary
Follow-up release to v0.0.266 to fix an issue with
python -m ruff
- andimport ruff
-based workflows.(No new rules or functionality.)
What's Changed
Rules
RUF010
to detect explicit type conversions within f-strings by @LotemAm in https://github.com/charliermarsh/ruff/pull/4387Other Changes
New Contributors
Full Changelog: astral-sh/ruff@v0.0.266...v0.0.267
v0.0.266
Compare Source
What's Changed
Breaking Changes
update-check
setting by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4313Rules
pygrep-hooks
] Implement pygrep-hook's Mock-mistake diagnostic by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4366pylint
] Implementnested-min-max
(W3301
) by @mccullocht in https://github.com/charliermarsh/ruff/pull/4200flynt
] Implement Flynt static string join transform as FLY002 by @akx in https://github.com/charliermarsh/ruff/pull/4196pylint
] Include positional- and keyword-only arguments in too-many-arguments by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4329ruff
] Update confusable character mapping by @akx in https://github.com/charliermarsh/ruff/pull/4274Settings
Bug Fixes
PD002
in a lambda expression by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/4286D403
if first char cannot be uppercased by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/4283not not a
asbool(a)
in boolean contexts by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4294TRY301
exceptions without except handlers by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4301ListComp
brackets inC419
by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/4099__all__
imports when determining definition visibility by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4357flake8-boolean-trap
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4385.encode
calls on parenthesized expressions by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4338SyntaxError
s before newline character by @MichaReiser in https://github.com/charliermarsh/ruff/pull/4124New Contributors
Full Changelog: astral-sh/ruff@v0.0.265...v0.0.266
v0.0.265
Compare Source
What's Changed
Breaking Changes
--fix-only
exit semantics to mirror--fix
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4146Rules
flake8-pyi
] ImplementPYI042
andPYI043
by @arya-k in https://github.com/charliermarsh/ruff/pull/4214pylint
] Implement import-self (W0406
) by @chanman3388 in https://github.com/charliermarsh/ruff/pull/4154Bug Fixes
CLI
--show-settings
output by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/4199Documentation
New Contributors
Full Changelog: astral-sh/ruff@v0.0.264...v0.0.265
v0.0.264
Compare Source
What's Changed
Rules
EM101
,EM102
,EM103
if possible by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/4123Settings
argfile
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4087Bug Fixes
pyright
comment prefix from PYI033 checks by @evanrittenhouse in https://github.com/charliermarsh/ruff/pull/4152E713
andE714
false positives for multiple comparisons by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/4083NamedExpr
assignments by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4145pytest.param
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4176Internal
Location
with byte-offsets. by @MichaReiser in https://github.com/charliermarsh/ruff/pull/3931memchr
to speedup newline search on x86 by @MichaReiser in https://github.com/charliermarsh/ruff/pull/3985ScopeStack
in favor of child-parentScopeId
pointers by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4138Full Changelog: astral-sh/ruff@v0.0.263...v0.0.264
v0.0.263
Compare Source
What's Changed
Rules
flake8-bugbear
] Addpytest.raises(Exception)
support to B017 by @alanhdu in https://github.com/charliermarsh/ruff/pull/4052flake8-import-conventions
] Implement new ruleICN003
to banfrom ... import ...
for selected modules by @edgarrmondragon in https://github.com/charliermarsh/ruff/pull/4040pylint
] Implement PLE0302unexpected-special-method-signature
by @mccullocht in https://github.com/charliermarsh/ruff/pull/4075pep8-naming
] IgnoreN815
forTypedDict
fields by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/4066Bug Fixes
PYI015
for valid default value without annotation by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/4043RUF008
if field annotation is immutable by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/4039ClassVar
annotation forRUF008
,RUF009
by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/4081New Contributors
Full Changelog: astral-sh/ruff@v0.0.262...v0.0.263
v0.0.262
Compare Source
What's Changed
Configuration
include
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3914Rules
flake8-simplify
] Add autofix forcontextlib.suppress
(SIM105
) by @leiserfg in https://github.com/charliermarsh/ruff/pull/3915flake8-bandit
] Ignore assert errors (S101) inTYPE_CHECKING
blocks by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3960flake8-comprehensions
] Implementunnecessary-literal-within-dict-call
(C418
) by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3969ruff
] Add checks for mutable defaultsdataclass
es by @mosauter in https://github.com/charliermarsh/ruff/pull/3877flake8-import-conventions
] Add a rule forBannedImportAlias
by @stancld in https://github.com/charliermarsh/ruff/pull/3926flake8-pyi
] Implement duplicate types in unions (PYI016
) by @USER-5 in https://github.com/charliermarsh/ruff/pull/3922flake8-bandit
] Implement flake8-bandit shell injection rules by @robyoung in https://github.com/charliermarsh/ruff/pull/3924flake8-comprehensions
] RedirectPIE802
toC419
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3971Bug Fixes
E712
message by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3962RET504
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4004PLW2901
when using typing cast by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/3891@override
methods by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3912C414
by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/3916*args
present forF523
by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/3923pyright: ignore
comments by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3941pygrep-hooks
rules by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3942typing_extensions.TypeVar
assignments in.pyi
files by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3951UP031
) for hanging modulos by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3953PT006
by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/3955E731
by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/3983SIM112
) by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3988banned-api
rules by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4024banned-api
enforcement by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4025New Contributors
Full Changelog: astral-sh/ruff@v0.0.261...v0.0.262
v0.0.261
Compare Source
What's Changed
Rules
flake8-simplify
] Ignorecollapsible-if
violations forif False:
andif True:
by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/3732flake8-pie
] Extendunncessary-generator-any-all
to set comprehensions by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3824flake8-simplify
] Implementdict-get-with-none-default
(SIM910
) by @kyoto7250 in https://github.com/charliermarsh/ruff/pull/3874flake8-annotations
] Additional simple magic return types by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/3805flake8-pyi
]: fix PYI015 false positive on assignment of TypeVar & friends by @bluetech in https://github.com/charliermarsh/ruff/pull/3861Bug Fixes
encode
calls by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3802inplace
removal by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3804Name
expressions induplicate-isinstance-call
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3817unnecessary-comprehension-any-all
for async generators by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3823is_module_name()
and improve perf ofis_identifier()
by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/3795B031
by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/3844logging
module only by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/3878Core
ImportMap
from module path to imported dependencies by @chanman3388 in https://github.com/charliermarsh/ruff/pull/3243Docs
ruff-action
(GitHub Action!) by @brucearctor in https://github.com/charliermarsh/ruff/pull/3857New Contributors
Full Changelog: astral-sh/ruff@v0.0.260...v0.0.261
v0.0.260
Compare Source
What's Changed
Rules
flake8-bugbear
] Add more immutable functions forB008
by @rouge8 in https://github.com/charliermarsh/ruff/pull/3764flake8-bugbear
] Allowpathlib.Path()
inB008
by @rouge8 in https://github.com/charliermarsh/ruff/pull/3794flake8-bugbear
] Expand the scope of useless-expression (B018) by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3455flake8-bugbear
]: Implement ruleB031
by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/3680flake8-gettext
] Implementflake8-gettext
by @leiserfg in https://github.com/charliermarsh/ruff/pull/3785flake8-logging-format
] Add support for.log(level, msg)
calls inflake8-logging-format
by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/3726flake8-logging-format
] Allow aliasedlogging
module as a logger candidate by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/3718flake8-pyi
] Add autofix forPYI014
by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/3729flake8-pyi
] ImplementPYI012
by @JBLDKY in https://github.com/charliermarsh/ruff/pull/3743flake8-pyi
] ImplementPYI015
by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/3728flake8-simplify
] Fix SIM222 and SIM223 false negative by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/3740isort
]: support submodules in known_(first|third)_party config options by @astaric in https://github.com/charliermarsh/ruff/pull/3768pycodestyle
] Use unicode-width to determine line-length instead of character count by @MichaReiser in https://github.com/charliermarsh/ruff/pull/3714pydocstyle
] Implement autofix forD403
by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/3731pylint
] Avoiduseless-import alias
(C0414
) in.pyi
files by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3761pylint
] ExemptPLR1711
andRET501
if non-None
annotation by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/3705tryceratops
] Exempt return with side effects for TRY300 by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/3780Bug Fixes
ForwardRef
contents as type references by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3698with
statements in complexity calculation by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3771pep8-naming
import rules by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3772TID252
to fix all valid module paths by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/3796wild::args()
and addwild
as a dependency by @agriyakhetarpal in https://github.com/charliermarsh/ruff/pull/3739New Contributors
Full Changelog: astral-sh/ruff@v0.0.259...v0.0.260
v0.0.259
Compare Source
Summary
Follow-up release to
v0.0.258
to fix an issue related to rule resolution viaselect
andignore
.What's Changed
Bug Fixes
missing_whitespace
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/3688Full Changelog: astral-sh/ruff@v0.0.258...v0.0.259
v0.0.258
Compare Source
What's Changed
Rules
flake8-comprehensions
] UpdateC416
with dict comprehension (autofixable) by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/3605pylint
]: Implementassert-on-string-literal
(W0129
) by @latonis in [https://github.com/[pylint
]: Implementassert-on-string-literal
(W0129
) astral-sh/ruff#3610](https://togithub.com/charliermarsh/ruff/pull/3610Configuration
📅 Schedule: Branch creation - "after 5pm on friday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.