From 0a5722e80e6df575ddc6406dc17efa7dfae5eafd Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Feb 13 2018 02:00:33 +0000 Subject: Fix flake8 errors Instead of fix errors detected from .copr/, just ignore it. Signed-off-by: Chenxiong Qi --- diff --git a/freshmaker/handlers/__init__.py b/freshmaker/handlers/__init__.py index 7f659ce..e5db5e8 100644 --- a/freshmaker/handlers/__init__.py +++ b/freshmaker/handlers/__init__.py @@ -417,7 +417,7 @@ class ContainerBuildHandler(BaseHandler): repo_urls.append(conf.image_extra_repo[name_version]) repo_urls += [self.odcs_get_compose(rel.compose.odcs_compose_id)['result_repofile'] - for rel in build.composes] + for rel in build.composes] return repo_urls diff --git a/tests/test_lightblue.py b/tests/test_lightblue.py index a95474d..2d168e4 100644 --- a/tests/test_lightblue.py +++ b/tests/test_lightblue.py @@ -831,7 +831,7 @@ class TestQueryEntityFromLightBlue(helpers.FreshmakerTestCase): @patch('freshmaker.lightblue.LightBlue.find_container_images') @patch('os.path.exists') - def test_parent_images_no_rpm_manifest(self, exists, cont_images): + def test_parent_images_no_rpm_manifest(self, exists, cont_images): exists.return_value = True images_without_rpm_manifest = [] for data in self.fake_images_with_parsed_data: @@ -853,7 +853,7 @@ class TestQueryEntityFromLightBlue(helpers.FreshmakerTestCase): @patch('freshmaker.lightblue.LightBlue.find_container_images') @patch('os.path.exists') - def test_parent_images_empty_rpm_manifest(self, exists, cont_images): + def test_parent_images_empty_rpm_manifest(self, exists, cont_images): exists.return_value = True images_without_rpm_manifest = [] for data in self.fake_images_with_parsed_data: diff --git a/tox.ini b/tox.ini index 720422c..2b23bb1 100644 --- a/tox.ini +++ b/tox.ini @@ -38,4 +38,4 @@ ignore_outcome = True [flake8] ignore = E501,E731 -exclude = freshmaker/migrations/*,.tox/*,build/*,__pycache__,scripts/print_handlers_md.py +exclude = freshmaker/migrations/*,.tox/*,build/*,__pycache__,scripts/print_handlers_md.py,.copr/*