pytest-dev / pytest-dev/pytest

more safe defaults for norecursedirs

Open
#1,982 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
Dominant language
Python
Stars
14.5k
Forks
3.4k
Avg merge
2d 9h
Merged PRs (30d)
35

Description

#1978 exposed that some norecurse directories have a name that is very sane to use outside of a project root

this issue is pretty tricky to debug

we should evaluate more strict evaluation of those and allowing folder names like "build" and "dist" inside normal python packages

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with issue #1978 and investigate how norecursedirs evaluates directory names outside a project root. Compare the current behavior for names such as "build" and "dist" inside normal Python packages, then define stricter evaluation and verify that those package directories remain usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.