chore(deps): update dependency ruff to v0.0.271 #46
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.255
->0.0.271
Release Notes
charliermarsh/ruff
v0.0.271
Compare Source
What's Changed
Rules
airflow
] Add AIR001: task variable name should be same as task_id arg by @jlaneve in https://github.com/charliermarsh/ruff/pull/4687flake8-bandit
] Implement S609, linux_commands_wildcard_injection by @scop in https://github.com/charliermarsh/ruff/pull/4504flake8-bugbear
] Move duplicate-value rule to flake8-bugbear by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4882flake8-fixme
] Implementflake8_fixme
and refactorTodoDirective
by @evanrittenhouse in https://github.com/charliermarsh/ruff/pull/4681flake8-future-annotations
] ImplementFA102
by @akx in https://github.com/charliermarsh/ruff/pull/4702flake8-pyi
] Add PYI024 forflake8-pyi
plugin by @qdegraaf in https://github.com/charliermarsh/ruff/pull/4756flake8-pyi
] Add PYI034 forflake8-pyi
plugin by @qdegraaf in https://github.com/charliermarsh/ruff/pull/4764flake8-pyi
] AddPYI032
rule with autofix by @qdegraaf in https://github.com/charliermarsh/ruff/pull/4695flake8-pyi
] Add autofix for PYI010 by @qdegraaf in https://github.com/charliermarsh/ruff/pull/4634flake8-pyi
] Implement PYI029 by @density in https://github.com/charliermarsh/ruff/pull/4851flake8-pyi
] Implement PYI035 by @density in https://github.com/charliermarsh/ruff/pull/4820flake8-pyi
] Implement PYI048 forflake8-pyi
plugin by @qdegraaf in https://github.com/charliermarsh/ruff/pull/4645flake8-pyi
] Implement PYI053 by @density in https://github.com/charliermarsh/ruff/pull/4770flake8-pyi
] Implement PYI054 by @density in https://github.com/charliermarsh/ruff/pull/4775flake8-pyi
] ImplementPYI025
by @qdegraaf in https://github.com/charliermarsh/ruff/pull/4791flake8-pyi
] ImplementPYI045
by @density in https://github.com/charliermarsh/ruff/pull/4700pylint
] Add Pylint ruleC0208
(use-sequence-for-iteration
) asPLC0208
(iteration-over-set
) by @tjkuson in https://github.com/charliermarsh/ruff/pull/4706pylint
] Add autofix forPLR1701
(repeated-isinstance-calls) by @dhruvmanila in https://github.com/charliermarsh/ruff/pull/4792pylint
] Implement Pylint'syield-inside-async-function
rule (PLE1700
) by @chanman3388 in https://github.com/charliermarsh/ruff/pull/4668pylint
] implement E307 for pylint invalid str return type by @Ryang20718 in https://github.com/charliermarsh/ruff/pull/4854ruff
] Lint pyproject.toml by @konstin in https://github.com/charliermarsh/ruff/pull/4496tryceratops
] Ignore error calls withexc_info
in TRY400 by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4797Settings
pyflakes.extend-generics
setting by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/4677Bug Fixes
B024
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4647async for
formatting by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4675join()
arguments are strings by @evanrittenhouse in https://github.com/charliermarsh/ruff/pull/4834__all__
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4885New Contributors
Full Changelog: astral-sh/ruff@v0.0.270...v0.0.271
v0.0.270
Compare Source
What's Changed
Rules
flake8-bandit
] Implementparamiko-call
(S601
) by @scop in https://github.com/charliermarsh/ruff/pull/4500flake8-pyi
] Add autofix for PYI009 by @qdegraaf in https://github.com/charliermarsh/ruff/pull/4583flake8-pyi
] ImplementPYI013
by @density in https://github.com/charliermarsh/ruff/pull/4517pylint
] Addduplicate-value
(W0130
) by @hoel-bagard in https://github.com/charliermarsh/ruff/pull/4515pylint
] Addnamed_expr_without_context
(W0131
) by @hoel-bagard in https://github.com/charliermarsh/ruff/pull/4531ruff
] ExtendRUF005
to recursive and literal-literal concatenations by @hoel-bagard in https://github.com/charliermarsh/ruff/pull/4557ruff
] Make ambiguous-unicode detection sensitive to 'word' context by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4552ruff
] Name ambiguous characters by @covracer in https://github.com/charliermarsh/ruff/pull/4448Settings
--extend-fixable
option by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4297extend-per-file-ignores
setting by @aacunningham in https://github.com/charliermarsh/ruff/pull/4265Bug Fixes
# isort: split
comment detection in nested blocks by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4584__qualname__
,__module__
, and__class__
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4512#region
code folding marks in eradicate rules by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4546tab-size
to correcly calculate the line length with tabulations by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/4167TypeVar
andNewType
name arguments by @charliermarsh in https://github.com/charliermarsh/ruff/pull/4627Message
sorting performance by @MichaReiser in https://github.com/charliermarsh/ruff/pull/4624New Contributors
Full Changelog: astral-sh/ruff@v0.0.269...v0.0.270
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/Allowtyping_extensions.TypeVar
assignments in.pyi
files astral-sh/ruff#3951](https://togiConfiguration
📅 Schedule: Branch creation - "before 4am" (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.