--fix-only now exits with a zero exit code, unless --exit-non-zero-on-fix is specified (#4146)
Previously, --fix-only would exit with a non-zero exit code if any fixes were applied. This
behavior was inconsistent with --fix, and further, meant that --exit-non-zero-on-fix was
effectively ignored when --fix-only was specified.
Now, --fix-only will exit with a zero exit code, unless --exit-non-zero-on-fix is specified,
in which case it will exit with a non-zero exit code if any fixes were applied.
0.0.260
Fixes are now represented as a list of edits (#3709)
Previously, Ruff represented each fix as a single edit, which prohibited Ruff from automatically
fixing violations that required multiple edits across a file. As such, Ruff now represents each
fix as a list of edits.
This primarily affects the JSON API. Ruff's JSON representation used to represent the fix field as
a single edit, like so:
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 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.254 to 0.0.265.
Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
... (truncated)
Commits
11e1380
Bump version to 0.0.265 (#4248)e93f378
Refactor whitespace around operator (#4223)2124feb
Fail lint tests if the fix creates a syntax error (#4202)c0e7269
Update doc defaults forsection-order
(#4232)c2921e9
[pylint
] Implement import-self (W0406
) (#4154)93cfce6
Ignore debuggerskip in unused variable checks (#4229)b71cc37
Change--fix-only
exit semantics to mirror--fix
(#4146)7171281
Fix panic in pydocstyle D214 when docstring indentation is empty (#4216)e9e194a
[flake8-pyi
] ImplementPYI042
andPYI043
(#4214)890e630
Allow linking to individual rules (#4158)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 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)