From 3a2e232b158b24f8df748db44ea34b19394b6327 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 27 Apr 2015 20:42:08 +0200 Subject: [PATCH] Ignore directories matching *_test(s) This skips checks in a dir like pytest_django_test for the pytest_django package. --- dodgy/run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dodgy/run.py b/dodgy/run.py index 9a7e62e..55fb332 100644 --- a/dodgy/run.py +++ b/dodgy/run.py @@ -10,6 +10,8 @@ r'(^|%(sep)s)\.[^\.]', # ignores any files or directories starting with '.' r'^tests?%(sep)s?', r'%(sep)stests?(%(sep)s|$)', + # Ignore foo_test(s)/. + r'_tests?(%(sep)s|$)', )]