Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 1544: norecursedirs build & dist dirs #1565

Merged

Conversation

tomviner
Copy link
Contributor

Fix for #1544

I've put the new dist and build strings near the front of the list as I figure these are more common than directory names like CVS and _darcs.

@tomviner tomviner force-pushed the issue1544/ignore-build-dist-dirs branch from f081461 to d6dfb1a Compare May 23, 2016 20:02
@@ -29,7 +29,7 @@

def pytest_addoption(parser):
parser.addini("norecursedirs", "directory patterns to avoid for recursion",
type="args", default=['.*', 'CVS', '_darcs', '{arch}', '*.egg'])
type="args", default=['.*', 'build', 'dist', 'CVS', '_darcs', '{arch}', '*.egg'])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're at it, how about adding .git and .hg to the list? 😁

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's covered by .* (which is a fnmatch glob, not a regex)

Otherwise you'd find pytest finding your code in .tox all the time too!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, you're right, thanks. 😁

@nicoddemus
Copy link
Member

Thanks for the work @tomviner! 😄

@nicoddemus nicoddemus merged commit 5ab5a11 into pytest-dev:features May 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants