⬆ Bump ruff from 0.0.261 to 0.0.285
Bumps ruff from 0.0.261 to 0.0.285.
Release notes
Sourced from ruff's releases.
v0.0.285
What's Changed
New rules
- [
flake8-pytest-style] Implementpytest-unittest-raises-assertion(PT027) by@harupyin astral-sh/ruff#6554- [
flake8-pytest-style] Implementpytest-duplicate-parametrize-test-cases(PT014) by@harupyin astral-sh/ruff#6598- [
flake8-tidy-imports] Implementbanned-module-level-imports(TID253) by@durumuin astral-sh/ruff#6378- [
pylint] Implementbad-dunder-name(W3201) (in the Ruff nursery) by@LaBatata101in astral-sh/ruff#6486- [
pylint] Implementsubprocess-run-check(W1510) by@tjkusonin astral-sh/ruff#6487- [
ruff] Implementquadratic-list-summation(RUF017) by@evanrittenhousein astral-sh/ruff#6489Rule changes
- [
flake8-bugbear] Add autofix forB006by@qdegraafin astral-sh/ruff#6131- [
flake8-pyi] Avoid applyingPYI055to runtime-evaluated annotations by@charliermarshin astral-sh/ruff#6457- [
flake8-self] Allowos._exitaccesses inSLF001by@charliermarshin astral-sh/ruff#6490- [
perflint] IgnorePERF203iftrycontains loop control flow statements by@evanrittenhousein astral-sh/ruff#6536- [
pylint] Check for invalid format type specifiers in nested replacements forPLE1300by@zaniebin astral-sh/ruff#6616- [
tryceratops] OmitNotImplementedErrorfromTRY003by@charliermarshin astral-sh/ruff#6568Settings
- Respect
.ipynband.pyisources when linting from stdin by@charliermarshin astral-sh/ruff#6628- Support glob patterns for
raises_require_match_forandraises_require_match_forby@harupyin astral-sh/ruff#6635Bug Fixes
- Make
lambda-assignmentfix always-manual in class bodies by@charliermarshin astral-sh/ruff#6626- Fix counting of message arguments when msg is provided as a keyword by
@charliermarshin astral-sh/ruff#6456- Add container types to
E721by@charliermarshin astral-sh/ruff#6469- Respect scoping rules when identifying builtins by
@charliermarshin astral-sh/ruff#6468- Respect tab width in line-length heuristic by
@charliermarshin astral-sh/ruff#6491- Respect dummy-variable-rgx for unused bound exceptions by
@charliermarshin astral-sh/ruff#6492- Fix detection of top-level imports with newlines in
E402by@charliermarshin astral-sh/ruff#6526- Allow if-expression with dual string arms in
invalid-envvar-valueby@charliermarshin astral-sh/ruff#6538- Add deprecated unittest assertions to PT009 by
@charliermarshin astral-sh/ruff#6572- Avoid unused argument rules when functions call
locals()by@charliermarshin astral-sh/ruff#6578- Allow top-level
awaitin Jupyter notebooks by@charliermarshin astral-sh/ruff#6607- Don't detect
pandas#valuesfor stores, deletes, or class accesses by@charliermarshin astral-sh/ruff#6631- Avoid removing parentheses in
E712fix by@charliermarshin astral-sh/ruff#6575- Skip whitespace between comments at start of file e.g. for
I002by@durumuin astral-sh/ruff#6523- Add support for nested replacements inside format specifications e.g. for
PLE1300by@zaniebin astral-sh/ruff#6616Playground
- Shared playground links now use short URLs by
@charliermarshin astral-sh/ruff#6383- Fix possible JSON parse error on playground load by
@charliermarshin astral-sh/ruff#6519- Fix unreachable panic in playground by
@MichaReiserin astral-sh/ruff#6623Performance
- Improve tokenizer performance for ASCII only identifiers by
@MichaReiserin astral-sh/ruff#6609New Contributors
... (truncated)
Changelog
Sourced from ruff's changelog.
Breaking Changes
0.0.283 / 0.284
The target Python version now defaults to 3.8 instead of 3.10 (#6397)
Previously, when a target Python version was not specified, Ruff would use a default of Python 3.10. However, it is safer to default to an older Python version to avoid assuming the availability of new features. We now default to the oldest supported Python version which is currently Python 3.8.
(We still support Python 3.7 but since it has reached EOL we've decided not to make it the default here.)
Note this change was announced in 0.0.283 but not active until 0.0.284.
0.0.277
.ipynb_checkpoints,.pyenv,.pytest_cache, and.vscodeare now excluded by default (#5513)Ruff maintains a list of default exclusions, which now consists of the following patterns:
.bzr.direnv.eggs.git.git-rewrite.hg.ipynb_checkpoints.mypy_cache.nox.pants.d.pyenv.pytest_cache.pytype.ruff_cache.svn.tox.venv.vscode__pypackages___buildbuck-outbuilddistnode_modulesvenvPreviously, the
.ipynb_checkpoints,.pyenv,.pytest_cache, and.vscodedirectories were not excluded by default. This change brings Ruff's default exclusions in line with other tools like Black.0.0.276
... (truncated)
Commits
5892c69Bump version to 0.0.285 (#6660)82e0a97Clarify behavior ofPLW3201(#6657)a8d7bbaRemove experimental label from Jupyter docs (#6655)1050142Expand expressions to include parentheses in E712 (#6575)db1c556ImplementRangedon more structs (#6639)a70807eExpandNamedExprrange to include full range of parenthesized value (#6632)d9bb51dci(deps): bump cloudflare/wrangler-action from 3.0.0 to 3.0.2 (#6565)d0f2a8eAdd support for nested replacements inside format specifications (#6616)1334232IntroduceExpressionRef(#6637)fa7442dSupportfmt: skipon compound statements (#6593)- 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 show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@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)