Sourced from ruff's releases.
0.7.3
Release Notes
Preview features
- Formatter: Disallow single-line implicit concatenated strings (#13928)
- [
flake8-pyi
] Include all Python file types forPYI006
andPYI066
(#14059)- [
flake8-simplify
] Implementsplit-of-static-string
(SIM905
) (#14008)- [
refurb
] Implementsubclass-builtin
(FURB189
) (#14105)- [
ruff
] Improve diagnostic messages and docs (RUF031
,RUF032
,RUF034
) (#14068)Rule changes
- Detect items that hash to same value in duplicate sets (
B033
,PLC0208
) (#14064)- [
eradicate
] Better detection of IntelliJ language injection comments (ERA001
) (#14094)- [
flake8-pyi
] Add autofix fordocstring-in-stub
(PYI021
) (#14150)- [
flake8-pyi
] Updateduplicate-literal-member
(PYI062
) to alawys provide an autofix (#14188)- [
pyflakes
] Detect items that hash to same value in duplicate dictionaries (F601
) (#14065)- [
ruff
] Fix false positive for decorators (RUF028
) (#14061)Bug fixes
- Avoid parsing joint rule codes as distinct codes in
# noqa
(#12809)- [
eradicate
] ignore# language=
in commented-out-code rule (ERA001) (#14069)- [
flake8-bugbear
] - do not runmutable-argument-default
on stubs (B006
) (#14058)- [
flake8-builtins
] Skip lambda expressions inbuiltin-argument-shadowing (A002)
(#14144)- [
flake8-comprehension
] Also remove trailing comma while fixingC409
andC419
(#14097)- [
flake8-simplify
] Allowopen
without context manager inreturn
statement (SIM115
) (#14066)- [
pylint
] Respect hash-equivalent literals initeration-over-set
(PLC0208
) (#14063)- [
pylint
] Update known dunder methods for Python 3.13 (PLW3201
) (#14146)- [
pyupgrade
] - ignore kwarg unpacking forUP044
(#14053)- [
refurb
] Parse more exotic decimal strings inverbose-decimal-constructor
(FURB157
) (#14098)Documentation
- Add links to missing related options within rule documentations (#13971)
- Add rule short code to mkdocs tags to allow searching via rule codes (#14040)
Install ruff 0.7.3
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.7.3/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/astral-sh/ruff/releases/download/0.7.3/ruff-installer.ps1 | iex" </tr></table>
... (truncated)
Sourced from ruff's changelog.
0.7.3
Preview features
- Formatter: Disallow single-line implicit concatenated strings (#13928)
- [
flake8-pyi
] Include all Python file types forPYI006
andPYI066
(#14059)- [
flake8-simplify
] Implementsplit-of-static-string
(SIM905
) (#14008)- [
refurb
] Implementsubclass-builtin
(FURB189
) (#14105)- [
ruff
] Improve diagnostic messages and docs (RUF031
,RUF032
,RUF034
) (#14068)Rule changes
- Detect items that hash to same value in duplicate sets (
B033
,PLC0208
) (#14064)- [
eradicate
] Better detection of IntelliJ language injection comments (ERA001
) (#14094)- [
flake8-pyi
] Add autofix fordocstring-in-stub
(PYI021
) (#14150)- [
flake8-pyi
] Updateduplicate-literal-member
(PYI062
) to alawys provide an autofix (#14188)- [
pyflakes
] Detect items that hash to same value in duplicate dictionaries (F601
) (#14065)- [
ruff
] Fix false positive for decorators (RUF028
) (#14061)Bug fixes
- Avoid parsing joint rule codes as distinct codes in
# noqa
(#12809)- [
eradicate
] ignore# language=
in commented-out-code rule (ERA001) (#14069)- [
flake8-bugbear
] - do not runmutable-argument-default
on stubs (B006
) (#14058)- [
flake8-builtins
] Skip lambda expressions inbuiltin-argument-shadowing (A002)
(#14144)- [
flake8-comprehension
] Also remove trailing comma while fixingC409
andC419
(#14097)- [
flake8-simplify
] Allowopen
without context manager inreturn
statement (SIM115
) (#14066)- [
pylint
] Respect hash-equivalent literals initeration-over-set
(PLC0208
) (#14063)- [
pylint
] Update known dunder methods for Python 3.13 (PLW3201
) (#14146)- [
pyupgrade
] - ignore kwarg unpacking forUP044
(#14053)- [
refurb
] Parse more exotic decimal strings inverbose-decimal-constructor
(FURB157
) (#14098)Documentation
- Add links to missing related options within rule documentations (#13971)
- Add rule short code to mkdocs tags to allow searching via rule codes (#14040)
0.7.2
Preview features
- Fix formatting of single with-item with trailing comment (#14005)
- [
pyupgrade
] Add PEP 646Unpack
conversion to*
with fix (UP044
) (#13988)Rule changes
- Regenerate
known_stdlibs.rs
with stdlibs 2024.10.25 (#13963)- [
flake8-no-pep420
] Skip namespace package enforcement for PEP 723 scripts (INP001
) (#13974)Server
... (truncated)
fbf140a
Bump version to 0.7.3 (#14197)670f958
[red-knot] Fix intersection simplification for
~Any
/~Unknown
(#14195)fed35a2
[red-knot] Fix is_assignable_to
for unions (#14196)d1ef418
Docs: tweak rules documentation (#14180)272d24b
[flake8-pyi
] Add a fix for
duplicate-literal-member
(#14188)2624249
[red-knot] Minor: fix Literal[True] <: int
(#14177)4b08d17
[red-knot] Add a new Type::KnownInstanceType
variant (#14155)5b6169b
[red-knot] Minor fix in intersection type comment (#14176)2040e93
[flake8-logging-format
] Fix invalid formatting value in
docs of `logging-ex...794eb88
[flake8-bandit
] Typo in docs
suspicious-pickle-import
(S403
) (#14175)