nvim-neotest / nvim-neotest/neotest-python
prevent venv* folders to be parsed by default
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 192
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how require('neotest').summary.toggle() launches test discovery and how the is_test_file function affects filtering. Investigate where venv* folders are parsed and whether the project exposes configuration for exclusions; done means those folders are skipped by default without losing existing test-file behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim, python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100