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@tjkusonin astral-sh/ruff#5517- [
flake8-pyi] Implementunnecessary-literal-union(PYI030) by@zaniebin astral-sh/ruff#5570- [
pylint] Implementtype-name-incorrect-variance(PLC0105) by@tjkusonin astral-sh/ruff#5651- [
ruff] Implementunnecessary-list-allocation-for-first-element(RUF015) by@evanrittenhousein astral-sh/ruff#5549- [
flake8-bugbear] Implementre-sub-positional-args(B034) by@charliermarshin astral-sh/ruff#5669- [
ruff] Implementinvalid-index-type(RUF016) by@zaniebin astral-sh/ruff#5602Settings
- [
isort] Add--case-sensitiveflag by@qdegraafin astral-sh/ruff#5539- [
isort] Support globbing inisortoptions by@tjkusonin astral-sh/ruff#5473Bug Fixes
- Support autofix for some multiline
str.formatcalls by@harupyin astral-sh/ruff#5638- Avoid triggering
unnecessary-map(C417) for late-bound lambdas by@charliermarshin astral-sh/ruff#5520- Avoid triggering DTZ001-006 when using
.astimezone()by@dhruvmanilain astral-sh/ruff#5524- Enable attribute lookups via semantic model by
@charliermarshin astral-sh/ruff#5536- Avoid syntax errors when rewriting str(dict) in f-strings by
@charliermarshin astral-sh/ruff#5538- Differentiate between runtime and typing-time annotations by
@charliermarshin astral-sh/ruff#5575- Only run pyproject.toml lint rules when enabled by
@charliermarshin astral-sh/ruff#5578- Refactor isort directive skips to use iterators by
@charliermarshin astral-sh/ruff#5623- Allow descriptor instantiations in dataclass fields by
@charliermarshin astral-sh/ruff#5537- Refactor
noqadirective parsing away from regex-based implementation by@charliermarshin astral-sh/ruff#5554- Emit warnings for invalid
# noqadirectives by@charliermarshin astral-sh/ruff#5571- Support individual codes on
# flake8: noqadirectives by@charliermarshin astral-sh/ruff#5618- Add
tkinterimport convention by@tjkusonin astral-sh/ruff#5626- Avoid
PERF401if conditional depends on list var by@dhruvmanilain astral-sh/ruff#5603- Fix typo in complex-if-statement-in-stub message by
@charliermarshin astral-sh/ruff#5635- Make TRY301 trigger only if a
raisethrows a caught exception by@evanrittenhousein astral-sh/ruff#5455- Skip flake8-future-annotations checks in stub files by
@charliermarshin astral-sh/ruff#5652- Always allow PEP 585 and PEP 604 rewrites in stub files by
@charliermarshin astral-sh/ruff#5653- Add support for
Uniondeclarations without|to PYI016 by@zaniebin astral-sh/ruff#5598- Ignore
_name_and_value_accesses inflake8-selfrules by@monosansin astral-sh/ruff#5663- Refactor
repeated_keys()to useComparableExprby@qdegraafin astral-sh/ruff#5696New Contributors
@karosis88made their first contribution in astral-sh/ruff#5560@petermattiamade their first contribution in astral-sh/ruff#5579@DimitriPapadopoulosmade their first contribution in astral-sh/ruff#5607Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.277...v0.0.278
Commits
-
0ead9a1Bump version to 0.0.278 (#5714) -
653429bHandle right parens in join comma builder (#5711) -
f0aa6bdDocument ruff_dev and format_dev (#5648) -
5665968Bump static Python versions in CI from 3.7 to 3.11 (#5700) -
33a9177Use permalinks in ecosystem diff references (#5704) -
0666addAdd RUF016: Detection of invalid index types (#5602) -
7566ca8Refactorrepeated_keys()to useComparableExpr(#5696) -
5dd9e56Misc. tweaks to bandit documentation (#5701) -
f8173daAdd documentation to theS3XXrules (#5592) -
511ec0dRefactor 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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)