diff options
author | pmikus <pmikus@cisco.com> | 2021-06-10 08:02:29 +0000 |
---|---|---|
committer | pmikus <pmikus@cisco.com> | 2021-06-10 11:05:48 +0000 |
commit | 7829fea4a2c8936513fa95215b7d84997f814a69 (patch) | |
tree | a75d02efa5a270fbe31a845bcc3fc66de76bb827 /resources/tools | |
parent | 8b25b4e89bdba964f2a3d602b8c47f551a084724 (diff) |
FIX: Pylint reduce
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I909942dbb920df7f0fe15c0c92cda92c3cd8d8ad
Diffstat (limited to 'resources/tools')
-rw-r--r-- | resources/tools/__init__.py | 2 | ||||
-rw-r--r-- | resources/tools/block_replacer/apache2gpl.sh | 2 | ||||
-rw-r--r-- | resources/tools/block_replacer/replace.py | 2 | ||||
-rwxr-xr-x | resources/tools/doc_gen/gen_rst.py | 2 | ||||
-rw-r--r-- | resources/tools/integrated/__init__.py | 2 | ||||
-rw-r--r-- | resources/tools/integrated/check_crc.py | 6 | ||||
-rw-r--r-- | resources/tools/integrated/compare_perpatch.py | 4 | ||||
-rw-r--r-- | resources/tools/iperf/iperf_client.py | 5 | ||||
-rw-r--r-- | resources/tools/presentation/__init__.py | 2 | ||||
-rw-r--r-- | resources/tools/presentation/environment.py | 2 | ||||
-rw-r--r-- | resources/tools/presentation/static_content.py | 2 | ||||
-rw-r--r-- | resources/tools/scripts/gdb-commands | 2 | ||||
-rwxr-xr-x | resources/tools/scripts/topo_reservation.py | 2 |
13 files changed, 19 insertions, 16 deletions
diff --git a/resources/tools/__init__.py b/resources/tools/__init__.py index e9d6d476eb..56935cf72b 100644 --- a/resources/tools/__init__.py +++ b/resources/tools/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2018 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: diff --git a/resources/tools/block_replacer/apache2gpl.sh b/resources/tools/block_replacer/apache2gpl.sh index f248393d50..67b51f200c 100644 --- a/resources/tools/block_replacer/apache2gpl.sh +++ b/resources/tools/block_replacer/apache2gpl.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: diff --git a/resources/tools/block_replacer/replace.py b/resources/tools/block_replacer/replace.py index 02d1889331..5154c51be1 100644 --- a/resources/tools/block_replacer/replace.py +++ b/resources/tools/block_replacer/replace.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: diff --git a/resources/tools/doc_gen/gen_rst.py b/resources/tools/doc_gen/gen_rst.py index 28223e22c7..1cb1005a50 100755 --- a/resources/tools/doc_gen/gen_rst.py +++ b/resources/tools/doc_gen/gen_rst.py @@ -1,4 +1,4 @@ -# Copyright (c) 2018 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: diff --git a/resources/tools/integrated/__init__.py b/resources/tools/integrated/__init__.py index a708b16817..fed3209ecf 100644 --- a/resources/tools/integrated/__init__.py +++ b/resources/tools/integrated/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2018 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: diff --git a/resources/tools/integrated/check_crc.py b/resources/tools/integrated/check_crc.py index 1d98a467e2..6baa7a190d 100644 --- a/resources/tools/integrated/check_crc.py +++ b/resources/tools/integrated/check_crc.py @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -62,8 +62,8 @@ def main(): u"", u"In the former case, please consult the following document", u"to see how to make CSIT accept the .api editing change.", - u"https://github.com/FDio/csit/blob/master/docs/automating_vpp_api_flag_day.rst" - u"", + u"https://github.com/FDio/csit/blob/master/docs/" + u"automating_vpp_api_flag_day.rst", u"For the latter case, please rebase the patch to see", u"if that fixes the problem. If repeated rebases do not help", u"send and email to csit-dev@lists.fd.io asking to investigate.", diff --git a/resources/tools/integrated/compare_perpatch.py b/resources/tools/integrated/compare_perpatch.py index 62e55629f6..b4d52dcdfe 100644 --- a/resources/tools/integrated/compare_perpatch.py +++ b/resources/tools/integrated/compare_perpatch.py @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -72,7 +72,7 @@ def main(): for test_index in range(num_tests): parent_values = list() current_values = list() - for iteration_index in range(len(parent_iterations)): + for iteration_index, _ in enumerate(parent_iterations): parent_values.extend( json.loads(parent_iterations[iteration_index][test_index]) ) diff --git a/resources/tools/iperf/iperf_client.py b/resources/tools/iperf/iperf_client.py index 9d9ed9b197..b77dea1179 100644 --- a/resources/tools/iperf/iperf_client.py +++ b/resources/tools/iperf/iperf_client.py @@ -44,7 +44,10 @@ def simple_burst(args): try: for i in range(0, args.instances): cmd = u"exec sudo " - cmd += f"ip netns exec {args.namespace} " if args.namespace else u"" + cmd += ( + f"ip netns exec {args.namespace} " + if args.namespace else u"" + ) cmd += f"iperf3 " cmd += f"--client {args.host} " cmd += f"--bind {args.bind} " diff --git a/resources/tools/presentation/__init__.py b/resources/tools/presentation/__init__.py index 67fa7230d6..a85fe45c2b 100644 --- a/resources/tools/presentation/__init__.py +++ b/resources/tools/presentation/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: diff --git a/resources/tools/presentation/environment.py b/resources/tools/presentation/environment.py index ea4d94ad70..9bf9586da8 100644 --- a/resources/tools/presentation/environment.py +++ b/resources/tools/presentation/environment.py @@ -1,4 +1,4 @@ -# Copyright (c) 2018 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: diff --git a/resources/tools/presentation/static_content.py b/resources/tools/presentation/static_content.py index 0fb81d1cbe..831d8a8f84 100644 --- a/resources/tools/presentation/static_content.py +++ b/resources/tools/presentation/static_content.py @@ -1,4 +1,4 @@ -# Copyright (c) 2017 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: diff --git a/resources/tools/scripts/gdb-commands b/resources/tools/scripts/gdb-commands index 419dca934b..b9acc864f1 100644 --- a/resources/tools/scripts/gdb-commands +++ b/resources/tools/scripts/gdb-commands @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: diff --git a/resources/tools/scripts/topo_reservation.py b/resources/tools/scripts/topo_reservation.py index 021c60a6b6..c1b5c4658e 100755 --- a/resources/tools/scripts/topo_reservation.py +++ b/resources/tools/scripts/topo_reservation.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: |