Update hacking for Python3

The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I7dd841e8904a29d342e5f1968c272fafd2f5e5ac
This commit is contained in:
Andreas Jaeger 2020-04-01 10:13:51 +02:00 committed by Luigi Toscano
parent 2cb44abfce
commit 300baf7712
5 changed files with 8 additions and 2 deletions

View File

@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
# flake8: noqa: E501
from sahara_tempest_plugin.services.data_processing.v1_1.data_processing_client import \
DataProcessingClient

View File

@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
# flake8: noqa: E501
from sahara_tempest_plugin.services.data_processing.v2.data_processing_client import \
DataProcessingClient

View File

@ -207,7 +207,8 @@ class BaseTestCase(base.BaseTestCase):
if output_id is not None:
output_url = self.sahara.get_datasource(
data_source_id=output_id).url
pl = lambda x: self._inject_datasources_data(x, input_url, output_url)
pl = lambda x: ( # noqa: E731
self._inject_datasources_data(x, input_url, output_url))
args = list(map(pl, configs.get('args', [])))
configs['args'] = args
return configs

View File

@ -200,5 +200,6 @@ def main():
testr_runner_exit_code = utils.run_tests(concurrency, test_dir_path)
sys.exit(testr_runner_exit_code)
if __name__ == '__main__':
main()

View File

@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0
hacking>=3.0,<3.1.0 # Apache-2.0
bandit!=1.6.0
bashate>=0.2 # Apache-2.0