Skip to content

Commit 66b0770

Browse files
committed
Check the full path, not just the filename, for exclusion
1 parent 5f1cb62 commit 66b0770

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pep8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ def input_dir(self, dirname):
16371637
for filename in sorted(files):
16381638
# contain a pattern that matches?
16391639
if ((filename_match(filename, filepatterns) and
1640-
not self.excluded(filename))):
1640+
not self.excluded(os.path.join(root, filename)))):
16411641
runner(os.path.join(root, filename))
16421642

16431643
def excluded(self, filename):

0 commit comments

Comments
 (0)