From 5bc13dc4633bb3eb98c68e403d0d62120d822af3 Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Thu, 14 Nov 2024 01:54:21 +0900 Subject: [PATCH] Update handle_err.rs --- crates/pylyzer_core/handle_err.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/pylyzer_core/handle_err.rs b/crates/pylyzer_core/handle_err.rs index 3d8161f..840efa6 100644 --- a/crates/pylyzer_core/handle_err.rs +++ b/crates/pylyzer_core/handle_err.rs @@ -62,7 +62,7 @@ fn filter_error( .input .path() .canonicalize() - .is_ok_and(|path| !path.starts_with(root)) + .is_ok_and(|path| path.starts_with(root.join(".venv")) || !path.starts_with(root)) }) { return None;