mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:44:56 +00:00
Update pre-commit dependencies (#17840)
Some checks are pending
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / Fuzz for new ty panics (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks (push) Blocked by required conditions
[ty Playground] Release / publish (push) Waiting to run
Some checks are pending
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / Fuzz for new ty panics (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks (push) Blocked by required conditions
[ty Playground] Release / publish (push) Waiting to run
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
parent
b8ed729f59
commit
2485afe640
3 changed files with 5 additions and 5 deletions
|
@ -65,7 +65,7 @@ repos:
|
||||||
- black==25.1.0
|
- black==25.1.0
|
||||||
|
|
||||||
- repo: https://github.com/crate-ci/typos
|
- repo: https://github.com/crate-ci/typos
|
||||||
rev: v1.31.1
|
rev: v1.32.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: typos
|
- id: typos
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ repos:
|
||||||
pass_filenames: false # This makes it a lot faster
|
pass_filenames: false # This makes it a lot faster
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.11.7
|
rev: v0.11.8
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
- id: ruff
|
- id: ruff
|
||||||
|
|
|
@ -226,8 +226,8 @@ impl<'db> SemanticIndexBuilder<'db> {
|
||||||
|
|
||||||
fn push_scope(&mut self, node: NodeWithScopeRef) {
|
fn push_scope(&mut self, node: NodeWithScopeRef) {
|
||||||
let parent = self.current_scope();
|
let parent = self.current_scope();
|
||||||
let reachabililty = self.current_use_def_map().reachability;
|
let reachability = self.current_use_def_map().reachability;
|
||||||
self.push_scope_with_parent(node, Some(parent), reachabililty);
|
self.push_scope_with_parent(node, Some(parent), reachability);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn push_scope_with_parent(
|
fn push_scope_with_parent(
|
||||||
|
|
|
@ -644,7 +644,7 @@ pub(super) struct UseDefMapBuilder<'db> {
|
||||||
|
|
||||||
/// Tracks whether or not the scope start is visible at the current point in control flow.
|
/// Tracks whether or not the scope start is visible at the current point in control flow.
|
||||||
/// This is subtly different from `scope_start_visibility`, as we apply these constraints
|
/// This is subtly different from `scope_start_visibility`, as we apply these constraints
|
||||||
/// at the beginnging of a branch. Visibility constraints, on the other hand, need to be
|
/// at the beginning of a branch. Visibility constraints, on the other hand, need to be
|
||||||
/// applied at the end of a branch, as we apply them retroactively to all live bindings:
|
/// applied at the end of a branch, as we apply them retroactively to all live bindings:
|
||||||
/// ```py
|
/// ```py
|
||||||
/// y = 1
|
/// y = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue