Skip to content

Commit

Permalink
Travis fix: Run flake8 with absolute path.
Browse files Browse the repository at this point in the history
  • Loading branch information
mik3y committed Jun 25, 2017
1 parent e7742a9 commit df7b451
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pykeg/core/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class CoreTests(TestCase):

def test_flake8(self):
root_path = path_for_import('pykeg')
command = 'flake8 {}'.format(root_path)
config_file = os.path.abspath(os.path.join(root_path, '..', 'setup.cfg'))
command = 'flake8 --config={} {}'.format(config_file, root_path)
try:
subprocess.check_output(command.split())
except subprocess.CalledProcessError as e:
Expand Down

0 comments on commit df7b451

Please sign in to comment.