commit d545f2b0ae812d44612fe9465f655d40154f76e4 from: Jelmer Vernooij via: GitHub date: Mon Jun 10 14:30:01 2024 UTC Bump ruff from 0.4.7 to 0.4.8 (#1332) Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.7 to 0.4.8.
Release notes

Sourced from ruff's releases.

v0.4.8

Changes

Performance

  • Linter performance has been improved by around 10% on some microbenchmarks by refactoring the lexer and parser to maintain synchronicity between them (#11457)

Preview features

  • [flake8-bugbear] Implement return-in-generator (B901) (#11644)
  • [flake8-pyi] Implement PYI063 (#11699)
  • [pygrep_hooks] Check blanket ignores via file-level pragmas (PGH004) (#11540)

Rule changes

  • [pyupgrade] Update UP035 for Python 3.13 and the latest version of typing_extensions (#11693)
  • [numpy] Update NPY001 rule for NumPy 2.0 (#11735)

Server

  • Formatting a document with syntax problems no longer spams a visible error popup (#11745)

CLI

  • Add RDJson support for --output-format flag (#11682)

Bug fixes

  • [pyupgrade] Write empty string in lieu of panic when fixing UP032 (#11696)
  • [flake8-simplify] Simplify double negatives in SIM103 (#11684)
  • Ensure the expression generator adds a newline before type statements (#11720)
  • Respect per-file ignores for blanket and redirected noqa rules (#11728)

Contributors

Changelog

Sourced from ruff's changelog.

0.4.8

Performance

  • Linter performance has been improved by around 10% on some microbenchmarks by refactoring the lexer and parser to maintain synchronicity between them (#11457)

Preview features

  • [flake8-bugbear] Implement return-in-generator (B901) (#11644)
  • [flake8-pyi] Implement PYI063 (#11699)
  • [pygrep_hooks] Check blanket ignores via file-level pragmas (PGH004) (#11540)

Rule changes

  • [pyupgrade] Update UP035 for Python 3.13 and the latest version of typing_extensions (#11693)
  • [numpy] Update NPY001 rule for NumPy 2.0 (#11735)

Server

  • Formatting a document with syntax problems no longer spams a visible error popup (#11745)

CLI

  • Add RDJson support for --output-format flag (#11682)

Bug fixes

  • [pyupgrade] Write empty string in lieu of panic when fixing UP032 (#11696)
  • [flake8-simplify] Simplify double negatives in SIM103 (#11684)
  • Ensure the expression generator adds a newline before type statements (#11720)
  • Respect per-file ignores for blanket and redirected noqa rules (#11728)
Commits
  • a8cf709 Bump version to v0.4.8 (#11755)
  • 895eb3e [red-knot] refactor CFG outside of symbol table (#11746)
  • 2e0a975 Disallow access to Parsed output, use the API instead (#11741)
  • b021b5b Use Tokens from parsed type annotation or parsed source (#11740)
  • eed6d78 Update type annotation parsing API to return Parsed (#11739)
  • 8338db6 ruff server: Formatting a document with syntax problems no longer spams a v...
  • d056d09 [red-knot] add if-statement support to FlowGraph (#11673)
  • 1645be0 Update NPY001 rule for NumPy 2.0 (#11735)
  • 2c86502 CI: add job to run tests under minimum supported rust version (msrv) (#11737)
  • 2567e14 Lexer should consider BOM for the start offset (#11732)
  • Additional commits viewable in compare view

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ruff&package-manager=pip&previous-version=0.4.7&new-version=0.4.8)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) ---
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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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)
commit - 1eed1c29e6ecd701673aa645908c93baad8b642b commit + d545f2b0ae812d44612fe9465f655d40154f76e4 blob - 09574253b9df8fc91804aa9ff1fe2a6913544485 blob + 51b6481d663de216d27fb1c10b629228ae7b8fdb --- pyproject.toml +++ pyproject.toml @@ -41,7 +41,7 @@ https = ["urllib3>=1.24.1"] pgp = ["gpg"] paramiko = ["paramiko"] dev = [ - "ruff==0.4.7" + "ruff==0.4.8" ] [project.scripts]