Skip to content

Commit 9c2651c

Browse files
authored
Avoid running PEP8 on third-party libraries (#82)
1 parent f0681dd commit 9c2651c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_pep8.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
"""Run PEP8 code format checker on all python files except samples directory."""
22

33
import os
4+
from os.path import dirname, abspath, join
45
import unittest
6+
57
import pep8
6-
from os.path import dirname, abspath
78

89

910
class Pep8Test(unittest.TestCase):
1011
def test_pep8(self):
1112
"""Test method to check PEP8 compliance over the entire project."""
12-
self.file_structure = dirname(dirname(abspath(__file__)))
13+
self.file_structure = join(dirname(dirname(abspath(__file__))), "hydra_python_core")
1314
print("Testing for PEP8 compliance of python files in {}".format(
1415
self.file_structure))
1516
style = pep8.StyleGuide()

0 commit comments

Comments
 (0)