Fix a broken regex that resulted in the slow path being chosen for some operations. This fix should result in notable speedups for some operations, such as wrapping text.
[13.9.3] - 2024-10-22
Fixed
Fixed broken regex that may have resulted in poor performance. Textualize/rich#3535
Fix E221 and E222 to flag missing or extra whitespace around == operator (#13890)
Formatter: Alternate quotes for strings inside f-strings in preview (#13860)
Formatter: Join implicit concatenated strings when they fit on a line (#13663)
[pylint] Restrict iteration-over-set to only work on sets of literals (PLC0208) (#13731)
Rule changes
[flake8-type-checking] Support auto-quoting when annotations contain quotes (#11811)
Server
Avoid indexing the workspace for single-file mode (#13770)
Bug fixes
Make ARG002 compatible with EM101 when raising NotImplementedError (#13714)
Other changes
Introduce more Docker tags for Ruff (similar to uv) (#13274)
0.7.0
Check out the blog post for a migration guide and overview of the changes!
Breaking changes
The pytest rules PT001 and PT023 now default to omitting the decorator parentheses when there are no arguments
(#12838, #13292).
This was a change that we attempted to make in Ruff v0.6.0, but only partially made due to an error on our part.
See the blog post for more details.
The useless-try-except rule (in our tryceratops category) has been recoded from TRY302 to
TRY203 (#13502). This ensures Ruff's code is consistent with
the same rule in the tryceratops linter.
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 show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the python-packages group with 8 updates in the / directory:
7.6.3
7.6.4
4.6.2
4.6.2.post1
43.0.1
43.0.3
3.0.1
3.0.2
13.9.2
13.9.3
0.6.9
0.7.1
0.40.0
0.41.2
0.31.1
0.32.0
Updates
coverage
from 7.6.3 to 7.6.4Changelog
Sourced from coverage's changelog.
Commits
f24f76b
docs: sample HTML for 7.6.496e10f7
docs: prep for 7.6.4b8c236a
fix: multi-line with-statements exit correctly. #188064b7a45
docs: another discord reference68d7427
docs: Python Discord43adcea
build: include 3.14 in the usual Pythonsfb2b49f
build: github_releases can update older releases, and pauses to get the sorti...ca550ca
3.0b2 wasn't correctly titleddebcc77
build: bump versionUpdates
anyio
from 4.6.2 to 4.6.2.post1Commits
Updates
cryptography
from 43.0.1 to 43.0.3Changelog
Sourced from cryptography's changelog.
Commits
c2afb4f
Backport metadata fix for vectors (#11797)9a3cdb5
43.0.2 release: fix libressl 4.0.0 (#11796)Updates
markupsafe
from 3.0.1 to 3.0.2Release notes
Sourced from markupsafe's releases.
Changelog
Sourced from markupsafe's changelog.
Commits
28ace20
release version 3.0.26b51fd8
build requires at least setuptools 70.1 (#478)99dda9f
build requires at least setuptools 70.13d8fd8c
fix version1933c4b
fix versione85aff4
relax speedups str check (#477)8cb1691
relax speedups str check4dafb7c
start version 3.1.09c44ecf
update docs build275c769
Merge branch '2.1.x' into 3.0.xUpdates
rich
from 13.9.2 to 13.9.3Release notes
Sourced from rich's releases.
Changelog
Sourced from rich's changelog.
Commits
afcc5c5
Merge pull request #3535 from Textualize/regex-error60f3b61
changelog04db8c2
update regexb93d3b6
test single cell widthsbe42f1b
test and added box drawing charactersad6b886
version bumpdb2e3e8
assert cut68e1b63
fix regexUpdates
ruff
from 0.6.9 to 0.7.1Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
... (truncated)
Commits
337af83
Bump version to 0.7.1 (#13913)113ce84
Fixnormalize
arguments whenfstring_formatting
is disabled (#13910)7272f83
Fix preview style name incan_omit_parentheses
to is_f_string_formatting_en...3eb4546
[red-knot] Format mdtest Python snippets more concisely (#13905)77ae0cc
[red-knot] Infer subscript expression types for bytes literals (#13901)73ee72b
Join implicit concatenated strings when they fit on a line (#13663)e402e27
Use referencial equality intraversal
helper methods (#13895)de4181d
Remove "default" remark fromruff check
(#13900)2c57c2d
[red-knot] Type narrowing forisinstance
checks (#13894)72c18c8
Fix E221 and E222 to flag missing or extra whitespace around==
operator (#...Updates
starlette
from 0.40.0 to 0.41.2Release notes
Sourced from starlette's releases.
Changelog
Sourced from starlette's changelog.
Commits
afeb7c2
Version 0.41.2 (#2740)f9ffd62
Revert bump onpython-multipart
(#2737)18bbb5c
Version 0.41.1 (#2736)342410d
Bump minimumpython-multipart
version to 0.0.13 (#2734)8377200
Changepython-multipart
import topython_multipart
(#2733)46131a1
Version 0.41.0 (#2729)99b6938
Allow to raiseHTTPException
beforewebsocket.accept()
(#2725)Updates
uvicorn
from 0.31.1 to 0.32.0Release notes
Sourced from uvicorn's releases.
Changelog
Sourced from uvicorn's changelog.
Commits
fe39100
Version 0.32.0 (#2485)967a2dc
Support Python 3.13 (#2482)079f07a
feat(server): log warning when max request limit is exceeded (#2430)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 show