Commit 86b9899b authored by Stefan Behnel's avatar Stefan Behnel Committed by GitHub

Merge pull request #2704 from oleksandr-pavlyk/tox-ini-issue-2700

ENH: implemented suggestion from issue 2700
parents e5519b83 9712e3c8
......@@ -1570,6 +1570,8 @@ class TestCodeFormat(unittest.TestCase):
def runTest(self):
import pycodestyle
config_file = os.path.join(self.cython_dir, "tox.ini")
if not os.path.exists(config_file):
config_file=os.path.join(os.path.dirname(__file__), "tox.ini")
paths = glob.glob(os.path.join(self.cython_dir, "**/*.py"), recursive=True)
style = pycodestyle.StyleGuide(config_file=config_file)
print("") # Fix the first line of the report.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment