Bump ruff from 0.0.277 to 0.0.278
Created by: dependabot[bot]
Bumps ruff from 0.0.277 to 0.0.278.
Release notes
Sourced from ruff's releases.
v0.0.278
See the release blog post for more, including detailed descriptions of any newly added rules.
What's Changed
Rules
- [
pylint
] Implementtypevar-bivariance
(PLC0131
) by@tjkuson
in astral-sh/ruff#5517- [
flake8-pyi
] Implementunnecessary-literal-union
(PYI030
) by@zanieb
in astral-sh/ruff#5570- [
pylint
] Implementtype-name-incorrect-variance
(PLC0105
) by@tjkuson
in astral-sh/ruff#5651- [
ruff
] Implementunnecessary-list-allocation-for-first-element
(RUF015
) by@evanrittenhouse
in astral-sh/ruff#5549- [
flake8-bugbear
] Implementre-sub-positional-args
(B034
) by@charliermarsh
in astral-sh/ruff#5669- [
ruff
] Implementinvalid-index-type
(RUF016
) by@zanieb
in astral-sh/ruff#5602Settings
- [
isort
] Add--case-sensitive
flag by@qdegraaf
in astral-sh/ruff#5539- [
isort
] Support globbing inisort
options by@tjkuson
in astral-sh/ruff#5473Bug Fixes
- Support autofix for some multiline
str.format
calls by@harupy
in astral-sh/ruff#5638- Avoid triggering
unnecessary-map
(C417
) for late-bound lambdas by@charliermarsh
in astral-sh/ruff#5520- Avoid triggering DTZ001-006 when using
.astimezone()
by@dhruvmanila
in astral-sh/ruff#5524- Enable attribute lookups via semantic model by
@charliermarsh
in astral-sh/ruff#5536- Avoid syntax errors when rewriting str(dict) in f-strings by
@charliermarsh
in astral-sh/ruff#5538- Differentiate between runtime and typing-time annotations by
@charliermarsh
in astral-sh/ruff#5575- Only run pyproject.toml lint rules when enabled by
@charliermarsh
in astral-sh/ruff#5578- Refactor isort directive skips to use iterators by
@charliermarsh
in astral-sh/ruff#5623- Allow descriptor instantiations in dataclass fields by
@charliermarsh
in astral-sh/ruff#5537- Refactor
noqa
directive parsing away from regex-based implementation by@charliermarsh
in astral-sh/ruff#5554- Emit warnings for invalid
# noqa
directives by@charliermarsh
in astral-sh/ruff#5571- Support individual codes on
# flake8: noqa
directives by@charliermarsh
in astral-sh/ruff#5618- Add
tkinter
import convention by@tjkuson
in astral-sh/ruff#5626- Avoid
PERF401
if conditional depends on list var by@dhruvmanila
in astral-sh/ruff#5603- Fix typo in complex-if-statement-in-stub message by
@charliermarsh
in astral-sh/ruff#5635- Make TRY301 trigger only if a
raise
throws a caught exception by@evanrittenhouse
in astral-sh/ruff#5455- Skip flake8-future-annotations checks in stub files by
@charliermarsh
in astral-sh/ruff#5652- Always allow PEP 585 and PEP 604 rewrites in stub files by
@charliermarsh
in astral-sh/ruff#5653- Add support for
Union
declarations without|
to PYI016 by@zanieb
in astral-sh/ruff#5598- Ignore
_name_
and_value_
accesses inflake8-self
rules by@monosans
in astral-sh/ruff#5663- Refactor
repeated_keys()
to useComparableExpr
by@qdegraaf
in astral-sh/ruff#5696New Contributors
@karosis88
made their first contribution in astral-sh/ruff#5560@petermattia
made their first contribution in astral-sh/ruff#5579@DimitriPapadopoulos
made their first contribution in astral-sh/ruff#5607Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.277...v0.0.278
Commits
-
0ead9a1
Bump version to 0.0.278 (#5714) -
653429b
Handle right parens in join comma builder (#5711) -
f0aa6bd
Document ruff_dev and format_dev (#5648) -
5665968
Bump static Python versions in CI from 3.7 to 3.11 (#5700) -
33a9177
Use permalinks in ecosystem diff references (#5704) -
0666add
Add RUF016: Detection of invalid index types (#5602) -
7566ca8
Refactorrepeated_keys()
to useComparableExpr
(#5696) -
5dd9e56
Misc. tweaks to bandit documentation (#5701) -
f8173da
Add documentation to theS3XX
rules (#5592) -
511ec0d
Refactor shebang parsing to remove regex dependency (#5690) - Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)