From 475a02b725d43d7e38bb243b3ed40afbfaf85da6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 08:08:17 +0200 Subject: [PATCH] Update pre-commit dependencies (#18581) --- .pre-commit-config.yaml | 4 ++-- CHANGELOG.md | 4 ++-- crates/ruff_db/src/diagnostic/render.rs | 22 +++++++++---------- .../ty_python_semantic/src/util/subscript.rs | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df1fb295f1..69a024e4a3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -66,7 +66,7 @@ repos: - black==25.1.0 - repo: https://github.com/crate-ci/typos - rev: v1.32.0 + rev: v1.33.1 hooks: - id: typos @@ -80,7 +80,7 @@ repos: pass_filenames: false # This makes it a lot faster - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.12 + rev: v0.11.13 hooks: - id: ruff-format - id: ruff diff --git a/CHANGELOG.md b/CHANGELOG.md index 0551679010..382ff304eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -230,7 +230,7 @@ - \[`airflow`\] Add missing `AIR302` attribute check ([#17115](https://github.com/astral-sh/ruff/pull/17115)) - \[`airflow`\] Expand module path check to individual symbols (`AIR302`) ([#17278](https://github.com/astral-sh/ruff/pull/17278)) - \[`airflow`\] Extract `AIR312` from `AIR302` rules (`AIR302`, `AIR312`) ([#17152](https://github.com/astral-sh/ruff/pull/17152)) -- \[`airflow`\] Update oudated `AIR301`, `AIR302` rules ([#17123](https://github.com/astral-sh/ruff/pull/17123)) +- \[`airflow`\] Update outdated `AIR301`, `AIR302` rules ([#17123](https://github.com/astral-sh/ruff/pull/17123)) - [syntax-errors] Async comprehension in sync comprehension ([#17177](https://github.com/astral-sh/ruff/pull/17177)) - [syntax-errors] Check annotations in annotated assignments ([#17283](https://github.com/astral-sh/ruff/pull/17283)) - [syntax-errors] Extend annotation checks to `await` ([#17282](https://github.com/astral-sh/ruff/pull/17282)) @@ -1313,7 +1313,7 @@ The following fixes have been stabilized: - Detect items that hash to same value in duplicate sets (`B033`, `PLC0208`) ([#14064](https://github.com/astral-sh/ruff/pull/14064)) - \[`eradicate`\] Better detection of IntelliJ language injection comments (`ERA001`) ([#14094](https://github.com/astral-sh/ruff/pull/14094)) - \[`flake8-pyi`\] Add autofix for `docstring-in-stub` (`PYI021`) ([#14150](https://github.com/astral-sh/ruff/pull/14150)) -- \[`flake8-pyi`\] Update `duplicate-literal-member` (`PYI062`) to alawys provide an autofix ([#14188](https://github.com/astral-sh/ruff/pull/14188)) +- \[`flake8-pyi`\] Update `duplicate-literal-member` (`PYI062`) to always provide an autofix ([#14188](https://github.com/astral-sh/ruff/pull/14188)) - \[`pyflakes`\] Detect items that hash to same value in duplicate dictionaries (`F601`) ([#14065](https://github.com/astral-sh/ruff/pull/14065)) - \[`ruff`\] Fix false positive for decorators (`RUF028`) ([#14061](https://github.com/astral-sh/ruff/pull/14061)) diff --git a/crates/ruff_db/src/diagnostic/render.rs b/crates/ruff_db/src/diagnostic/render.rs index af720e45d9..b00332c2c1 100644 --- a/crates/ruff_db/src/diagnostic/render.rs +++ b/crates/ruff_db/src/diagnostic/render.rs @@ -265,7 +265,7 @@ impl<'a> ResolvedDiagnostic<'a> { .get(); // The boundary case here is when `prev_context_ends` // is exactly one less than `this_context_begins`. In - // that case, the context windows are adajcent and we + // that case, the context windows are adjacent and we // should fall through below to add this annotation to // the existing snippet. if this_context_begins.saturating_sub(prev_context_ends) > 1 { @@ -754,7 +754,7 @@ kangaroo static FRUITS: &str = "\ apple banana -cantelope +cantaloupe lime orange pear @@ -1376,8 +1376,8 @@ watermelon | 1 | apple 2 | banana - 3 | cantelope - | ^^^^^^^^^ + 3 | cantaloupe + | ^^^^^^^^^^ 4 | lime 5 | orange | @@ -1479,8 +1479,8 @@ watermelon | 1 | apple 2 | banana - 3 | cantelope - | ^^^^^^^^^ + 3 | cantaloupe + | ^^^^^^^^^^ 4 | lime 5 | orange | @@ -1515,8 +1515,8 @@ watermelon | 1 | apple 2 | banana - 3 | cantelope - | ^^^^^^^^^ + 3 | cantaloupe + | ^^^^^^^^^^ 4 | lime 5 | orange | @@ -1562,8 +1562,8 @@ watermelon | 1 | apple 2 | banana - 3 | cantelope - | ^^^^^^^^^ + 3 | cantaloupe + | ^^^^^^^^^^ 4 | lime 5 | orange | @@ -2040,7 +2040,7 @@ watermelon 1 | apple | ^^^^^ primary 2 | banana - 3 | cantelope + 3 | cantaloupe | ::: animals:1:1 | diff --git a/crates/ty_python_semantic/src/util/subscript.rs b/crates/ty_python_semantic/src/util/subscript.rs index bf0cdaec84..92765faf71 100644 --- a/crates/ty_python_semantic/src/util/subscript.rs +++ b/crates/ty_python_semantic/src/util/subscript.rs @@ -342,7 +342,7 @@ mod tests { } #[test] - fn py_slice_negatice_indices() { + fn py_slice_negative_indices() { let input = ['a', 'b', 'c', 'd', 'e']; assert_eq_slice(&input, Some(-6), None, None, &['a', 'b', 'c', 'd', 'e']);