From cecea0aac2fe0b44139624bebaced2ed6f9eafae Mon Sep 17 00:00:00 2001 From: mike wakerly Date: Sun, 25 Jun 2017 11:16:54 -0400 Subject: [PATCH] Make flake8 config available to travis. --- MANIFEST.in | 1 + pykeg/core/tests.py | 3 ++- setup.cfg => pykeg/setup.cfg | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename setup.cfg => pykeg/setup.cfg (100%) diff --git a/MANIFEST.in b/MANIFEST.in index 00d3ebf35..32c5e7ce2 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,5 @@ include README.md include LICENSE.txt +include pykeg/setup.cfg recursive-include pykeg *.html *.css *.js *.png recursive-include deploy * diff --git a/pykeg/core/tests.py b/pykeg/core/tests.py index c8c3288ff..7be878020 100644 --- a/pykeg/core/tests.py +++ b/pykeg/core/tests.py @@ -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.join(root_path, 'setup.cfg') + command = 'flake8 --config={} {}'.format(config_file, root_path) try: subprocess.check_output(command.split()) except subprocess.CalledProcessError as e: diff --git a/setup.cfg b/pykeg/setup.cfg similarity index 100% rename from setup.cfg rename to pykeg/setup.cfg