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 and False (#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)
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.
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 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)
Bumps ruff from 0.0.287 to 0.1.3.
Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
... (truncated)
Commits
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 whenisort.force-single-line
is true ...d211074
Clarify unsafe case in RSE102 (#8256)4ffd4ed
Correct quick fix message forW605
(#8255)a4dd1e5
Refine the warnings about incompatible linter options (#8196)be3307e
Makeunnecessary-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)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