Bump ruff from 0.12.0 to 0.12.1
Open
Number: #300
Type: Pull Request
State: Open
Type: Pull Request
State: Open
Author:
dependabot[bot]
Association: Contributor
Comments: 0
Association: Contributor
Comments: 0
Created:
June 27, 2025 at 09:52 AM UTC
(4 months ago)
(4 months ago)
Updated:
June 27, 2025 at 09:52 AM UTC
(4 months ago)
(4 months ago)
Labels:
dependencies python
dependencies python
Description:
Bumps ruff from 0.12.0 to 0.12.1.
Release notes
Sourced from ruff's releases.
0.12.1
Release Notes
Preview features
- [
flake8-errmsg] ExtendEM101to support byte strings (#18867)- [
flake8-use-pathlib] Add autofix forPTH202(#18763)- [
pygrep-hooks] AddAsyncMockmethods toinvalid-mock-access(PGH005) (#18547)- [
pylint] Ignore__init__.pyfiles in (PLC0414) (#18400)- [
ruff] TriggerRUF037for empty string and byte strings (#18862)- [formatter] Fix missing blank lines before decorated classes in
.pyifiles (#18888)Bug fixes
- Avoid generating diagnostics with per-file ignores (#18801)
- Handle parenthesized arguments in
remove_argument(#18805)- [
flake8-logging] Avoid false positive forexc_info=Trueoutsidelogger.exception(LOG014) (#18737)- [
flake8-pytest-style] Enforcepytestimport for decorators (#18779)- [
flake8-pytest-style] Mark autofix forPT001andPT023as unsafe if there's comments in the decorator (#18792)- [
flake8-pytest-style]PT001/PT023fix makes syntax error on parenthesized decorator (#18782)- [
flake8-raise] Make fix unsafe if it deletes comments (RSE102) (#18788)- [
flake8-simplify] FixSIM911autofix creating a syntax error (#18793)- [
flake8-simplify] Fix false negatives for shadowed bindings (SIM910,SIM911) (#18794)- [
flake8-simplify] Preserve original behavior forexcept ()and bareexcept(SIM105) (#18213)- [
flake8-pyi] FixPYI041's fix causingTypeErrorwithNone | None | ...(#18637)- [
perflint] FixPERF101autofix creating a syntax error and mark autofix as unsafe if there are comments in thelistcall expr (#18803)- [
perflint] Fix false negative inPERF401(#18866)- [
pylint] Avoid flattening nestedmin/maxwhen outer call has single argument (PLW3301) (#16885)- [
pylint] FixPLC2801autofix creating a syntax error (#18857)- [
pylint] MarkPLE0241autofix as unsafe if there's comments in the base classes (#18832)- [
pylint] SuppressPLE2510/PLE2512/PLE2513/PLE2514/PLE2515autofix if the text contains an odd number of backslashes (#18856)- [
refurb] Detect more exotic float literals inFURB164(#18925)- [
refurb] FixFURB163autofix creating a syntax error foryieldexpressions (#18756)- [
refurb] MarkFURB129autofix as unsafe if there's comments in thereadlinescall (#18858)- [
ruff] Fix false positives and negatives inRUF010(#18690)- Fix casing of
analyze.directionvariant names (#18892)Rule changes
- Fix f-string interpolation escaping in generated fixes (#18882)
- [
flake8-return] MarkRET501fix unsafe if comments are inside (#18780)- [
flake8-async] Fix detection for large integer sleep durations inASYNC116rule (#18767)- [
flake8-async] Mark autofix forASYNC115as unsafe if the call expression contains comments (#18753)- [
flake8-bugbear] Mark autofix forB004as unsafe if thehasattrcall expr contains comments (#18755)- [
flake8-comprehension] Mark autofix forC420as unsafe if there's comments inside the dict comprehension (#18768)- [
flake8-comprehensions] Handle template strings for comprehension fixes (#18710)- [
flake8-future-annotations] Add autofix (FA100) (#18903)- [
pyflakes] MarkF504/F522/F523autofix as unsafe if there's a call with side effect (#18839)- [
pylint] Allow fix with comments and document performance implications (PLW3301) (#18936)- [
pylint] Detect more exoticNaNliterals inPLW0177(#18630)
... (truncated)
Changelog
Sourced from ruff's changelog.
0.12.1
Preview features
- [
flake8-errmsg] ExtendEM101to support byte strings (#18867)- [
flake8-use-pathlib] Add autofix forPTH202(#18763)- [
pygrep-hooks] AddAsyncMockmethods toinvalid-mock-access(PGH005) (#18547)- [
pylint] Ignore__init__.pyfiles in (PLC0414) (#18400)- [
ruff] TriggerRUF037for empty string and byte strings (#18862)- [formatter] Fix missing blank lines before decorated classes in
.pyifiles (#18888)Bug fixes
- Avoid generating diagnostics with per-file ignores (#18801)
- Handle parenthesized arguments in
remove_argument(#18805)- [
flake8-logging] Avoid false positive forexc_info=Trueoutsidelogger.exception(LOG014) (#18737)- [
flake8-pytest-style] Enforcepytestimport for decorators (#18779)- [
flake8-pytest-style] Mark autofix forPT001andPT023as unsafe if there's comments in the decorator (#18792)- [
flake8-pytest-style]PT001/PT023fix makes syntax error on parenthesized decorator (#18782)- [
flake8-raise] Make fix unsafe if it deletes comments (RSE102) (#18788)- [
flake8-simplify] FixSIM911autofix creating a syntax error (#18793)- [
flake8-simplify] Fix false negatives for shadowed bindings (SIM910,SIM911) (#18794)- [
flake8-simplify] Preserve original behavior forexcept ()and bareexcept(SIM105) (#18213)- [
flake8-pyi] FixPYI041's fix causingTypeErrorwithNone | None | ...(#18637)- [
perflint] FixPERF101autofix creating a syntax error and mark autofix as unsafe if there are comments in thelistcall expr (#18803)- [
perflint] Fix false negative inPERF401(#18866)- [
pylint] Avoid flattening nestedmin/maxwhen outer call has single argument (PLW3301) (#16885)- [
pylint] FixPLC2801autofix creating a syntax error (#18857)- [
pylint] MarkPLE0241autofix as unsafe if there's comments in the base classes (#18832)- [
pylint] SuppressPLE2510/PLE2512/PLE2513/PLE2514/PLE2515autofix if the text contains an odd number of backslashes (#18856)- [
refurb] Detect more exotic float literals inFURB164(#18925)- [
refurb] FixFURB163autofix creating a syntax error foryieldexpressions (#18756)- [
refurb] MarkFURB129autofix as unsafe if there's comments in thereadlinescall (#18858)- [
ruff] Fix false positives and negatives inRUF010(#18690)- Fix casing of
analyze.directionvariant names (#18892)Rule changes
- Fix f-string interpolation escaping in generated fixes (#18882)
- [
flake8-return] MarkRET501fix unsafe if comments are inside (#18780)- [
flake8-async] Fix detection for large integer sleep durations inASYNC116rule (#18767)- [
flake8-async] Mark autofix forASYNC115as unsafe if the call expression contains comments (#18753)- [
flake8-bugbear] Mark autofix forB004as unsafe if thehasattrcall expr contains comments (#18755)- [
flake8-comprehension] Mark autofix forC420as unsafe if there's comments inside the dict comprehension (#18768)- [
flake8-comprehensions] Handle template strings for comprehension fixes (#18710)- [
flake8-future-annotations] Add autofix (FA100) (#18903)- [
pyflakes] MarkF504/F522/F523autofix as unsafe if there's a call with side effect (#18839)- [
pylint] Allow fix with comments and document performance implications (PLW3301) (#18936)- [
pylint] Detect more exoticNaNliterals inPLW0177(#18630)- [
pylint] FixPLC1802autofix creating a syntax error and mark autofix as unsafe if there's comments in thelencall (#18836)
... (truncated)
Commits
32c5418Bump 0.12.1 (#18969)b85c219[FastAPI] Add fix safety section toFAST002(#18940)b1d1cf1[ty] Add regression test for leading tab mis-alignment in diagnostic renderin...1dcdf7f[ty] Resolve python environment inOptions::to_program_settings(#18960)d006976[ruff] Fix false positives and negatives inRUF010(#18690)76619b9[ty] Fix rendering of long lines that are indented with tabs6e25cfb[ty] Add regression test for diagnostic rendering panic7638729[ty] Move venv and conda env discovery toSearchPath::from_settings(#18938)d04e63a[ty] Add regression-benchmark for attribute-assignment hang (#18957)86fd9b6[ty] Format conflicting types as an enumeration (#18956)- 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)
Pull Request Statistics
Commits:
1
1
Files Changed:
1
1
Additions:
+1
+1
Deletions:
-1
-1
Package Dependencies
Technical Details
| ID: | 2372606 |
| UUID: | 2623834316 |
| Node ID: | PR_kwDOISUkVM6cZIjM |
| Host: | GitHub |
| Repository: | cbrews/netlify-python |
| Merge State: | Unknown |