From 288e58b83d53f622f0a52612bd567b568a7706d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3n=C3=A1n=20Carrigan?= Date: Mon, 12 Sep 2022 06:59:47 +0100 Subject: [PATCH] feat: filter_dir function --- lua/neotest-python/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/neotest-python/init.lua b/lua/neotest-python/init.lua index e9d5ab4..a509654 100644 --- a/lua/neotest-python/init.lua +++ b/lua/neotest-python/init.lua @@ -72,6 +72,10 @@ function PythonNeotestAdapter.is_test_file(file_path) return is_test_file(file_path) end +function PythonNeotestAdapter.filter_dir(name) + return name ~= "venv" +end + ---@async ---@return Tree | nil function PythonNeotestAdapter.discover_positions(path)