Sourced from ruff's releases.
v0.1.3
This release includes a variety of improvements to the Ruff formatter (available now as
ruff format
), removing several known and unintentional deviations from Black.Changes
Formatter
- Avoid space around pow for
None
,True
andFalse
(#8189)- Avoid sorting all paths in the format command (#8181)
- Insert necessary blank line between class and leading comments (#8224)
- Avoid introducing new parentheses in annotated assignments (#8233)
- Refine the warnings about incompatible linter options (#8196)
- Add test and basic implementation for formatter preview mode (#8044)
- Refine warning about incompatible
isort
settings (#8192)- Only omit optional parentheses for starting or ending with parentheses (#8238)
- Use source type to determine parser mode for formatting (#8205)
- Don't warn about magic trailing comma when
isort.force-single-line
is true (#8244)- Use
SourceKind::diff
for formatter (#8240)- Fix
fmt:off
with trailing child comment (#8234)- Formatter parentheses support for
IpyEscapeCommand
(#8207)Linter
- [
pylint
] Add buffer methods tobad-dunder-method-name
(PLW3201
) exclusions (#8190)- Match rule prefixes from
external
codes setting inunused-noqa
(#8177)- Use
line-length
setting for isort in lieu ofpycodestyle.max-line-length
(#8235)- Update fix for
unnecessary-paren-on-raise-exception
to unsafe for unknown types (#8231)- Correct quick fix message for
W605
(#8255)Documentation
- Fix typo in max-doc-length documentation (#8201)
- Improve documentation around linter-formatter conflicts (#8257)
- Fix link to error suppression documentation in
unused-noqa
(#8172)- Add
external
option tounused-noqa
documentation (#8171)- Add title attribute to icons (#8060)
- Clarify unsafe case in RSE102 (#8256)
- Fix skipping formatting examples (#8210)
- docs: fix name of
magic-trailing-comma
option in README (#8200)- Add note about scope of rule changing in versioning policy (#8169)
- Document: Fix default lint rules (#8218)
- Fix a wrong setting in configuration.md (#8186)
- Fix misspelled TOML headers in the tutorial (#8209)
Contributors
... (truncated)
Sourced from ruff's changelog.
0.1.3
This release includes a variety of improvements to the Ruff formatter, removing several known and unintentional deviations from Black.
Formatter
- Avoid space around pow for
None
,True
andFalse
(#8189)- Avoid sorting all paths in the format command (#8181)
- Insert necessary blank line between class and leading comments (#8224)
- Avoid introducing new parentheses in annotated assignments (#8233)
- Refine the warnings about incompatible linter options (#8196)
- Add test and basic implementation for formatter preview mode (#8044)
- Refine warning about incompatible
isort
settings (#8192)- Only omit optional parentheses for starting or ending with parentheses (#8238)
- Use source type to determine parser mode for formatting (#8205)
- Don't warn about magic trailing comma when
isort.force-single-line
is true (#8244)- Use
SourceKind::diff
for formatter (#8240)- Fix
fmt:off
with trailing child comment (#8234)- Formatter parentheses support for
IpyEscapeCommand
(#8207)Linter
- [
pylint
] Add buffer methods tobad-dunder-method-name
(PLW3201
) exclusions (#8190)- Match rule prefixes from
external
codes setting inunused-noqa
(#8177)- Use
line-length
setting for isort in lieu ofpycodestyle.max-line-length
(#8235)- Update fix for
unnecessary-paren-on-raise-exception
to unsafe for unknown types (#8231)- Correct quick fix message for
W605
(#8255)Documentation
- Fix typo in max-doc-length documentation (#8201)
- Improve documentation around linter-formatter conflicts (#8257)
- Fix link to error suppression documentation in
unused-noqa
(#8172)- Add
external
option tounused-noqa
documentation (#8171)- Add title attribute to icons (#8060)
- Clarify unsafe case in RSE102 (#8256)
- Fix skipping formatting examples (#8210)
- docs: fix name of
magic-trailing-comma
option in README (#8200)- Add note about scope of rule changing in versioning policy (#8169)
- Document: Fix default lint rules (#8218)
- Fix a wrong setting in configuration.md (#8186)
- Fix misspelled TOML headers in the tutorial (#8209)
0.1.2
This release includes the Beta version of the Ruff formatter — an extremely fast, Black-compatible Python formatter. Try it today with
ruff format
! Check out the blog post and read the docs.Preview features
... (truncated)
3e7b929
Bump version to v0.1.3 (#8259)25d4dda
Add title attribute to icons (#8060)63a5a12
Improve documentation around linter-formatter conflicts (#8257)c32f943
Don't warn about magic trailing comma when
isort.force-single-line
is true ...d211074
Clarify unsafe case in RSE102 (#8256)4ffd4ed
Correct quick fix message for W605
(#8255)a4dd1e5
Refine the warnings about incompatible linter options (#8196)be3307e
Make unnecessary-paren-on-raise-exception
an unsafe edit
(#8231)317d3dd
Add test and basic implementation for formatter preview mode (#8044)f5e8507
Only omit optional parentheses for starting or ending with parentheses
(#8238)