Skip to content

0.8.5

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 02 Jan 12:09
11e873e

Release Notes

Preview features

  • [airflow] Extend names moved from core to provider (AIR303) (#15145, #15159, #15196, #15216)
  • [airflow] Extend rule to check class attributes, methods, arguments (AIR302) (#15054, #15083)
  • [fastapi] Update FAST002 to check keyword-only arguments (#15119)
  • [flake8-type-checking] Disable TC006 and TC007 in stub files (#15179)
  • [pylint] Detect nested methods correctly (PLW1641) (#15032)
  • [ruff] Detect more strict-integer expressions (RUF046) (#14833)
  • [ruff] Implement falsy-dict-get-fallback (RUF056) (#15160)
  • [ruff] Implement unnecessary-round (RUF057) (#14828)

Rule changes

  • Visit PEP 764 inline TypedDict keys as non-type-expressions (#15073)
  • [flake8-comprehensions] Skip C416 if comprehension contains unpacking (#14909)
  • [flake8-pie] Allow cast(SomeType, ...) (PIE796) (#15141)
  • [flake8-simplify] More precise inference for dictionaries (SIM300) (#15164)
  • [flake8-use-pathlib] Catch redundant joins in PTH201 and avoid syntax errors (#15177)
  • [pycodestyle] Preserve original value format (E731) (#15097)
  • [pydocstyle] Split on first whitespace character (D403) (#15082)
  • [pyupgrade] Add all PEP-585 names to UP006 rule (#5454)

Configuration

  • [flake8-type-checking] Improve flexibility of runtime-evaluated-decorators (#15204)
  • [pydocstyle] Add setting to ignore missing documentation for *args and **kwargs parameters (D417) (#15210)
  • [ruff] Add an allowlist for unsafe-markup-use (RUF035) (#15076)

Bug fixes

  • Fix type subscript on older python versions (#15090)
  • Use TypeChecker for detecting fastapi routes (#15093)
  • [pycodestyle] Avoid false positives and negatives related to type parameter default syntax (E225, E251) (#15214)

Documentation

  • Fix incorrect doc in shebang-not-executable (EXE001) and add git+windows solution to executable bit (#15208)
  • Rename rules currently not conforming to naming convention (#15102)

Contributors

Install ruff 0.8.5

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.8.5/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.5/ruff-installer.ps1 | iex"

Download ruff 0.8.5

File Platform Checksum
ruff-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
ruff-x86_64-apple-darwin.tar.gz Intel macOS checksum
ruff-aarch64-pc-windows-msvc.zip ARM64 Windows checksum
ruff-i686-pc-windows-msvc.zip x86 Windows checksum
ruff-x86_64-pc-windows-msvc.zip x64 Windows checksum
ruff-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
ruff-i686-unknown-linux-gnu.tar.gz x86 Linux checksum
ruff-powerpc64-unknown-linux-gnu.tar.gz PPC64 Linux checksum
ruff-powerpc64le-unknown-linux-gnu.tar.gz PPC64LE Linux checksum
ruff-s390x-unknown-linux-gnu.tar.gz S390x Linux checksum
ruff-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum
ruff-armv7-unknown-linux-gnueabihf.tar.gz ARMv7 Linux checksum
ruff-aarch64-unknown-linux-musl.tar.gz ARM64 MUSL Linux checksum
ruff-i686-unknown-linux-musl.tar.gz x86 MUSL Linux checksum
ruff-x86_64-unknown-linux-musl.tar.gz x64 MUSL Linux checksum
ruff-arm-unknown-linux-musleabihf.tar.gz ARMv6 MUSL Linux (Hardfloat) checksum
ruff-armv7-unknown-linux-musleabihf.tar.gz ARMv7 MUSL Linux checksum