Skip to content

Commit 2485afe

Browse files
Update pre-commit dependencies (astral-sh#17840)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Micha Reiser <micha@reiser.io>
1 parent b8ed729 commit 2485afe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ repos:
6565
- black==25.1.0
6666

6767
- repo: https://github.com/crate-ci/typos
68-
rev: v1.31.1
68+
rev: v1.32.0
6969
hooks:
7070
- id: typos
7171

@@ -79,7 +79,7 @@ repos:
7979
pass_filenames: false # This makes it a lot faster
8080

8181
- repo: https://github.com/astral-sh/ruff-pre-commit
82-
rev: v0.11.7
82+
rev: v0.11.8
8383
hooks:
8484
- id: ruff-format
8585
- id: ruff

crates/ty_python_semantic/src/semantic_index/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ impl<'db> SemanticIndexBuilder<'db> {
226226

227227
fn push_scope(&mut self, node: NodeWithScopeRef) {
228228
let parent = self.current_scope();
229-
let reachabililty = self.current_use_def_map().reachability;
230-
self.push_scope_with_parent(node, Some(parent), reachabililty);
229+
let reachability = self.current_use_def_map().reachability;
230+
self.push_scope_with_parent(node, Some(parent), reachability);
231231
}
232232

233233
fn push_scope_with_parent(

crates/ty_python_semantic/src/semantic_index/use_def.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ pub(super) struct UseDefMapBuilder<'db> {
644644

645645
/// Tracks whether or not the scope start is visible at the current point in control flow.
646646
/// This is subtly different from `scope_start_visibility`, as we apply these constraints
647-
/// at the beginnging of a branch. Visibility constraints, on the other hand, need to be
647+
/// at the beginning of a branch. Visibility constraints, on the other hand, need to be
648648
/// applied at the end of a branch, as we apply them retroactively to all live bindings:
649649
/// ```py
650650
/// y = 1

0 commit comments

Comments
 (0)