astral-sh/ruff (ruff)
### [`v0.4.8`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#048)
[Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.4.7...v0.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](https://togithub.com/astral-sh/ruff/pull/11457))
##### Preview features
- \[`flake8-bugbear`] Implement `return-in-generator` (`B901`) ([#11644](https://togithub.com/astral-sh/ruff/pull/11644))
- \[`flake8-pyi`] Implement `PYI063` ([#11699](https://togithub.com/astral-sh/ruff/pull/11699))
- \[`pygrep_hooks`] Check blanket ignores via file-level pragmas (`PGH004`) ([#11540](https://togithub.com/astral-sh/ruff/pull/11540))
##### Rule changes
- \[`pyupgrade`] Update `UP035` for Python 3.13 and the latest version of `typing_extensions` ([#11693](https://togithub.com/astral-sh/ruff/pull/11693))
- \[`numpy`] Update `NPY001` rule for NumPy 2.0 ([#11735](https://togithub.com/astral-sh/ruff/pull/11735))
##### Server
- Formatting a document with syntax problems no longer spams a visible error popup ([#11745](https://togithub.com/astral-sh/ruff/pull/11745))
##### CLI
- Add RDJson support for `--output-format` flag ([#11682](https://togithub.com/astral-sh/ruff/pull/11682))
##### Bug fixes
- \[`pyupgrade`] Write empty string in lieu of panic when fixing `UP032` ([#11696](https://togithub.com/astral-sh/ruff/pull/11696))
- \[`flake8-simplify`] Simplify double negatives in `SIM103` ([#11684](https://togithub.com/astral-sh/ruff/pull/11684))
- Ensure the expression generator adds a newline before `type` statements ([#11720](https://togithub.com/astral-sh/ruff/pull/11720))
- Respect per-file ignores for blanket and redirected noqa rules ([#11728](https://togithub.com/astral-sh/ruff/pull/11728))
### [`v0.4.7`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#047)
[Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.4.6...v0.4.7)
##### Preview features
- \[`flake8-pyi`] Implement `PYI064` ([#11325](https://togithub.com/astral-sh/ruff/pull/11325))
- \[`flake8-pyi`] Implement `PYI066` ([#11541](https://togithub.com/astral-sh/ruff/pull/11541))
- \[`flake8-pyi`] Implement `PYI057` ([#11486](https://togithub.com/astral-sh/ruff/pull/11486))
- \[`pyflakes`] Enable `F822` in `__init__.py` files by default ([#11370](https://togithub.com/astral-sh/ruff/pull/11370))
##### Formatter
- Fix incorrect placement of trailing stub function comments ([#11632](https://togithub.com/astral-sh/ruff/pull/11632))
##### Server
- Respect file exclusions in `ruff server` ([#11590](https://togithub.com/astral-sh/ruff/pull/11590))
- Add support for documents not exist on disk ([#11588](https://togithub.com/astral-sh/ruff/pull/11588))
- Add Vim and Kate setup guide for `ruff server` ([#11615](https://togithub.com/astral-sh/ruff/pull/11615))
##### Bug fixes
- Avoid removing newlines between docstring headers and rST blocks ([#11609](https://togithub.com/astral-sh/ruff/pull/11609))
- Infer indentation with imports when logical indent is absent ([#11608](https://togithub.com/astral-sh/ruff/pull/11608))
- Use char index rather than position for indent slice ([#11645](https://togithub.com/astral-sh/ruff/pull/11645))
- \[`flake8-comprehension`] Strip parentheses around generators in `C400` ([#11607](https://togithub.com/astral-sh/ruff/pull/11607))
- Mark `repeated-isinstance-calls` as unsafe on Python 3.10 and later ([#11622](https://togithub.com/astral-sh/ruff/pull/11622))
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "after 11am and before 11pm every weekend" in timezone Asia/Tokyo.
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
==0.4.6
->==0.4.8
Release Notes
astral-sh/ruff (ruff)
### [`v0.4.8`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#048) [Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.4.7...v0.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](https://togithub.com/astral-sh/ruff/pull/11457)) ##### Preview features - \[`flake8-bugbear`] Implement `return-in-generator` (`B901`) ([#11644](https://togithub.com/astral-sh/ruff/pull/11644)) - \[`flake8-pyi`] Implement `PYI063` ([#11699](https://togithub.com/astral-sh/ruff/pull/11699)) - \[`pygrep_hooks`] Check blanket ignores via file-level pragmas (`PGH004`) ([#11540](https://togithub.com/astral-sh/ruff/pull/11540)) ##### Rule changes - \[`pyupgrade`] Update `UP035` for Python 3.13 and the latest version of `typing_extensions` ([#11693](https://togithub.com/astral-sh/ruff/pull/11693)) - \[`numpy`] Update `NPY001` rule for NumPy 2.0 ([#11735](https://togithub.com/astral-sh/ruff/pull/11735)) ##### Server - Formatting a document with syntax problems no longer spams a visible error popup ([#11745](https://togithub.com/astral-sh/ruff/pull/11745)) ##### CLI - Add RDJson support for `--output-format` flag ([#11682](https://togithub.com/astral-sh/ruff/pull/11682)) ##### Bug fixes - \[`pyupgrade`] Write empty string in lieu of panic when fixing `UP032` ([#11696](https://togithub.com/astral-sh/ruff/pull/11696)) - \[`flake8-simplify`] Simplify double negatives in `SIM103` ([#11684](https://togithub.com/astral-sh/ruff/pull/11684)) - Ensure the expression generator adds a newline before `type` statements ([#11720](https://togithub.com/astral-sh/ruff/pull/11720)) - Respect per-file ignores for blanket and redirected noqa rules ([#11728](https://togithub.com/astral-sh/ruff/pull/11728)) ### [`v0.4.7`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#047) [Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.4.6...v0.4.7) ##### Preview features - \[`flake8-pyi`] Implement `PYI064` ([#11325](https://togithub.com/astral-sh/ruff/pull/11325)) - \[`flake8-pyi`] Implement `PYI066` ([#11541](https://togithub.com/astral-sh/ruff/pull/11541)) - \[`flake8-pyi`] Implement `PYI057` ([#11486](https://togithub.com/astral-sh/ruff/pull/11486)) - \[`pyflakes`] Enable `F822` in `__init__.py` files by default ([#11370](https://togithub.com/astral-sh/ruff/pull/11370)) ##### Formatter - Fix incorrect placement of trailing stub function comments ([#11632](https://togithub.com/astral-sh/ruff/pull/11632)) ##### Server - Respect file exclusions in `ruff server` ([#11590](https://togithub.com/astral-sh/ruff/pull/11590)) - Add support for documents not exist on disk ([#11588](https://togithub.com/astral-sh/ruff/pull/11588)) - Add Vim and Kate setup guide for `ruff server` ([#11615](https://togithub.com/astral-sh/ruff/pull/11615)) ##### Bug fixes - Avoid removing newlines between docstring headers and rST blocks ([#11609](https://togithub.com/astral-sh/ruff/pull/11609)) - Infer indentation with imports when logical indent is absent ([#11608](https://togithub.com/astral-sh/ruff/pull/11608)) - Use char index rather than position for indent slice ([#11645](https://togithub.com/astral-sh/ruff/pull/11645)) - \[`flake8-comprehension`] Strip parentheses around generators in `C400` ([#11607](https://togithub.com/astral-sh/ruff/pull/11607)) - Mark `repeated-isinstance-calls` as unsafe on Python 3.10 and later ([#11622](https://togithub.com/astral-sh/ruff/pull/11622))Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "after 11am and before 11pm every weekend" in timezone Asia/Tokyo.
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.