diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9c77b5360..fdf8d34468 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -67,7 +67,7 @@ repos: - black==25.1.0 - repo: https://github.com/crate-ci/typos - rev: v1.33.1 + rev: v1.34.0 hooks: - id: typos @@ -81,7 +81,7 @@ repos: pass_filenames: false # This makes it a lot faster - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.1 + rev: v0.12.2 hooks: - id: ruff-format - id: ruff @@ -99,12 +99,12 @@ repos: # zizmor detects security vulnerabilities in GitHub Actions workflows. # Additional configuration for the tool is found in `.github/zizmor.yml` - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.10.0 + rev: v1.11.0 hooks: - id: zizmor - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.33.1 + rev: 0.33.2 hooks: - id: check-github-workflows diff --git a/crates/ruff_python_formatter/src/pattern/pattern_match_sequence.rs b/crates/ruff_python_formatter/src/pattern/pattern_match_sequence.rs index 0625f78a5e..8753760ec6 100644 --- a/crates/ruff_python_formatter/src/pattern/pattern_match_sequence.rs +++ b/crates/ruff_python_formatter/src/pattern/pattern_match_sequence.rs @@ -91,7 +91,7 @@ impl SequenceType { .map(Ranged::start) .unwrap_or(pattern.end()), )]; - let after_last_patttern = &source[TextRange::new( + let after_last_pattern = &source[TextRange::new( pattern.start(), pattern .patterns @@ -100,7 +100,7 @@ impl SequenceType { .unwrap_or(pattern.end()), )]; - if before_first_pattern.starts_with('[') && !after_last_patttern.ends_with(',') { + if before_first_pattern.starts_with('[') && !after_last_pattern.ends_with(',') { SequenceType::List } else if before_first_pattern.starts_with('(') { // If the pattern is empty, it must be a parenthesized tuple with no members. (This diff --git a/crates/ty_python_semantic/src/types/diagnostic.rs b/crates/ty_python_semantic/src/types/diagnostic.rs index efaa226a54..ecc870530d 100644 --- a/crates/ty_python_semantic/src/types/diagnostic.rs +++ b/crates/ty_python_semantic/src/types/diagnostic.rs @@ -2426,7 +2426,7 @@ fn report_invalid_base<'ctx, 'db>( /// This function receives an unresolved `from foo import bar` import, /// where `foo` can be resolved to a module but that module does not -/// have a `bar` member or submdoule. +/// have a `bar` member or submodule. /// /// If the `foo` module originates from the standard library and `foo.bar` /// *does* exist as a submodule in the standard library on *other* Python