-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(pre-commit): update ruff to v0.0.286 #28
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
force-pushed
the
renovate/ruff
branch
from
April 20, 2023 01:14
1ec268c
to
8b0cf1d
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.261
chore(pre-commit): update ruff to v0.0.262
Apr 20, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
April 25, 2023 11:27
8b0cf1d
to
8ba4423
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.262
chore(pre-commit): update ruff to v0.0.263
Apr 25, 2023
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.263
chore(pre-commit): update ruff to v0.0.264
May 2, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
2 times, most recently
from
May 5, 2023 19:26
a9a92bd
to
a0b5e9b
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.264
chore(pre-commit): update ruff to v0.0.265
May 5, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
May 12, 2023 20:40
a0b5e9b
to
badf362
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.265
chore(pre-commit): update ruff to v0.0.267
May 12, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
May 18, 2023 22:51
badf362
to
181488a
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.267
chore(pre-commit): update ruff to v0.0.269
May 18, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
May 24, 2023 22:41
181488a
to
3c33e8a
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.269
chore(pre-commit): update ruff to v0.0.270
May 24, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
June 7, 2023 00:09
3c33e8a
to
7b23026
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.270
chore(pre-commit): update ruff
Jun 7, 2023
renovate
bot
changed the title
chore(pre-commit): update ruff
chore(pre-commit): update ruff to v0.0.271
Jun 7, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
2 times, most recently
from
June 8, 2023 03:53
3b45452
to
e71e500
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.271
chore(pre-commit): update ruff to v0.0.272
Jun 8, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
June 20, 2023 22:29
e71e500
to
7053f2e
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.272
chore(pre-commit): update ruff to v0.0.273
Jun 20, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
June 21, 2023 08:07
7053f2e
to
2925c07
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.273
chore(pre-commit): update ruff to v0.0.274
Jun 21, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
June 22, 2023 19:39
2925c07
to
01082d7
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.274
chore(pre-commit): update ruff
Jun 22, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
June 22, 2023 21:05
01082d7
to
2b15feb
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff
chore(pre-commit): update ruff to v0.0.275
Jun 22, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
July 3, 2023 20:14
2b15feb
to
7158572
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.275
chore(pre-commit): update ruff to v0.0.276
Jul 3, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
July 5, 2023 01:06
7158572
to
79ddf86
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.276
chore(pre-commit): update ruff to v0.0.277
Jul 5, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
July 12, 2023 18:18
79ddf86
to
6468ebd
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.277
chore(pre-commit): update ruff to v0.0.278
Jul 12, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
July 21, 2023 22:11
6468ebd
to
8a38233
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.278
chore(pre-commit): update ruff to v0.0.279
Jul 21, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
July 22, 2023 04:30
8a38233
to
6423fa4
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.279
chore(pre-commit): update ruff to v0.0.280
Jul 22, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
July 31, 2023 19:11
6423fa4
to
e7cd683
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.280
chore(pre-commit): update ruff to v0.0.281
Jul 31, 2023
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.281
chore(pre-commit): update ruff to v0.0.282
Aug 1, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
August 1, 2023 14:18
e7cd683
to
b444d2d
Compare
renovate
bot
force-pushed
the
renovate/ruff
branch
from
August 8, 2023 22:41
b444d2d
to
bf67f1a
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.282
chore(pre-commit): update ruff to v0.0.283
Aug 8, 2023
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.283
chore(pre-commit): update ruff to v0.0.284
Aug 9, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
August 9, 2023 21:58
bf67f1a
to
565f573
Compare
renovate
bot
force-pushed
the
renovate/ruff
branch
from
August 18, 2023 01:22
565f573
to
aed6ca6
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.284
chore(pre-commit): update ruff to v0.0.285
Aug 18, 2023
renovate
bot
force-pushed
the
renovate/ruff
branch
from
August 25, 2023 23:39
aed6ca6
to
79203e2
Compare
renovate
bot
changed the title
chore(pre-commit): update ruff to v0.0.285
chore(pre-commit): update ruff to v0.0.286
Aug 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
v0.0.257
->v0.0.286
==0.0.257
->==0.0.286
Note: The
pre-commit
manager in Renovate is not supported by thepre-commit
maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.Release Notes
charliermarsh/ruff-pre-commit (charliermarsh/ruff-pre-commit)
v0.0.286
Compare Source
See: https://github.com/astral-sh/ruff/releases/tag/v0.0.286
v0.0.285
Compare Source
See https://github.com/astral-sh/ruff/releases/tag/v0.0.285
v0.0.284
Compare Source
See https://github.com/astral-sh/ruff/releases/tag/v0.0.284
v0.0.283
Compare Source
See https://github.com/astral-sh/ruff/releases/tag/v0.0.283
v0.0.282
Compare Source
See: https://github.com/astral-sh/ruff/releases/tag/v0.0.282
v0.0.281
Compare Source
See: https://github.com/astral-sh/ruff/releases/tag/v0.0.281
v0.0.280
Compare Source
See: https://github.com/astral-sh/ruff/releases/tag/v0.0.280
v0.0.279
Compare Source
See: https://github.com/astral-sh/ruff/releases/tag/v0.0.279
v0.0.278
Compare Source
See: https://github.com/astral-sh/ruff/releases/tag/v0.0.278
v0.0.277
Compare Source
See: https://github.com/astral-sh/ruff/releases/tag/v0.0.277
v0.0.276
Compare Source
See: https://github.com/astral-sh/ruff/releases/tag/v0.0.276
v0.0.275
Compare Source
v0.0.274
Compare Source
v0.0.273
Compare Source
v0.0.272
Compare Source
v0.0.271
Compare Source
v0.0.270
Compare Source
v0.0.269
Compare Source
v0.0.267
Compare Source
v0.0.266
Compare Source
v0.0.265
Compare Source
v0.0.264
Compare Source
v0.0.263
Compare Source
v0.0.262
Compare Source
v0.0.261
Compare Source
v0.0.260
Compare Source
v0.0.259
Compare Source
v0.0.258
Compare Source
astral-sh/ruff (ruff)
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: astral-sh/ruff@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: astral-sh/ruff@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: astral-sh/ruff@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: astral-sh/ruff@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: astral-sh/ruff@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: astral-sh/ruff@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: astral-sh/ruff@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
Options
section of rule docs astral-sh/ruff#5741](httpConfiguration
📅 Schedule: Branch creation - "* 4 * * 5/2" (UTC), 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 these updates again.
This PR has been generated by Mend Renovate. View repository job log here.