neotest-python icon indicating copy to clipboard operation
neotest-python copied to clipboard

prevent venv* folders to be parsed by default

Open Tazoeur opened this issue 1 year ago • 1 comments

Hello,

The require('neotest').summary.toggle() launches the search for tests, and I see that my venv* folders are parsed by neotest. That's a behaviour I'd like to prevent.

I've tried to tweak it with the is_test_file function, but I lost the original behaviour which was doing a great job.

I feel like this folder exclusion could be a useful default, but maybe having a configuration option like exclude_pattern = { "venv*", "dist"} would be better.

I am sorry if there is something trivial that I am missing; I am still in the early stages of building a proper development workflow, and I am not yet confident in my Neovim/Lua skills.

Tazoeur avatar Oct 18 '24 09:10 Tazoeur