Repository navigation
Tags
Tags
Skip the W605 source scan when a literal has no decoded backslash (#3… …0376) ## Summary The parser preserves an unknown escape like `\q` in the decoded literal, including its backslash. If a successfully decoded string or bytes literal has no backslash, W605 can skip scanning its source. This avoids walking the full spelling of escaped binary data a second time. Callgrind counts for an uncached `ruff check` on [JAX](https://github.com/jax-ml/jax/tree/55029b8f7e65adb79764103871ec0357fa440227/jax/_src/internal_test_util/export_back_compat_test_data). | Uncached workload | Main instructions | With this change | Reduction | | --- | ---: | ---: | ---: | | JAX export compatibility fixtures | 131,472,981 | 123,959,397 | 5.71% | | JAX export implementation, compatibility fixtures, and export tests | 226,452,648 | 218,584,652 | 3.47% | ## Test Plan The linter tests passed, and diagnostics and fixes matched main on Ruff’s fixtures and Home Assistant.
Bump version to 0.17.4 (#30073) Co-authored-by: astral-automations-bot[bot] <305554984+astral-automations-bot[bot]@users.noreply.github.com> Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
Bump version to 0.17.3 (#29745) Co-authored-by: astral-automations-bot[bot] <305554984+astral-automations-bot[bot]@users.noreply.github.com> Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
Bump version to 0.17.2 (#29637) Co-authored-by: astral-automations-bot[bot] <305554984+astral-automations-bot[bot]@users.noreply.github.com> Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
Bump version to 0.17.0 (#29259) Co-authored-by: astral-automations-bot[bot] <305554984+astral-automations-bot[bot]@users.noreply.github.com> Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
Bump version to 0.16.10 (#29055) Co-authored-by: astral-automations-bot[bot] <305554984+astral-automations-bot[bot]@users.noreply.github.com> Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
Bump version to 0.16.9 (#28882) Co-authored-by: astral-automations-bot[bot] <305554984+astral-automations-bot[bot]@users.noreply.github.com> Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
Bump version to 0.16.8 (#28648) Co-authored-by: astral-automations-bot[bot] <305554984+astral-automations-bot[bot]@users.noreply.github.com> Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
Bump version to 0.16.7 (#28496) Co-authored-by: astral-automations-bot[bot] <305554984+astral-automations-bot[bot]@users.noreply.github.com> Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
PreviousNext