Release Notes
Preview features
- [
airflow
] Avoid deprecated values (AIR302
) (#14582) - [
airflow
] Extend removed names forAIR302
(#14734) - [
ruff
] Extendunnecessary-regular-expression
to non-literal strings (RUF055
) (#14679) - [
ruff
] Implementused-dummy-variable
(RUF052
) (#14611) - [
ruff
] Implementunnecessary-cast-to-int
(RUF046
) (#14697)
Rule changes
- [
airflow
] CheckAIR001
from builtin or providersoperators
module (#14631) - [
flake8-pytest-style
] Remove@
inpytest.mark.parametrize
rule messages (#14770) - [
pandas-vet
] Skip rules if thepanda
module hasn't been seen (#14671) - [
pylint
] Fix false negatives forascii
andsorted
inlen-as-condition
(PLC1802
) (#14692) - [
refurb
] Guardhashlib
imports and markhashlib-digest-hex
fix as safe (FURB181
) (#14694)
Configuration
- [
flake8-import-conventions
] Improve syntax check for aliases supplied in configuration forunconventional-import-alias
(ICN001
) (#14745)
Bug fixes
- Revert: [pyflakes] Avoid false positives in
@no_type_check
contexts (F821
,F722
) (#14615) (#14726) - [
pep8-naming
] Avoid false positive forclass Bar(type(foo))
(N804
) (#14683) - [
pycodestyle
] Handle f-strings properly forinvalid-escape-sequence
(W605
) (#14748) - [
pylint
] Ignore@overload
inPLR0904
(#14730) - [
refurb
] Handle non-finite decimals inverbose-decimal-constructor
(FURB157
) (#14596) - [
ruff
] Avoid emittingassignment-in-assert
when all references to the assigned variable are themselves insideassert
s (RUF018
) (#14661)
Documentation
- Improve docs for
flake8-use-pathlib
rules (#14741) - Improve error messages and docs for
flake8-comprehensions
rules (#14729) - [
flake8-type-checking
] ExpandsTC006
docs to better explain itself (#14749)
Contributors
- @AlexWaygood
- @Daverball
- @InSyncWithFoo
- @Lee-W
- @Lokejoke
- @Matt-Ord
- @MichaReiser
- @Well2333
- @connorskees
- @dcreager
- @dhruvmanila
- @dylwil3
- @github-actions
- @harupy
- @ntBre
- @renovate
- @sbrugman
- @sharkdp
- @uranusjr
Install ruff 0.8.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.8.2/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/astral-sh/ruff/releases/download/0.8.2/ruff-installer.ps1 | iex"