From d1dd0d020a7b16266f3ce3b2fcdb8f935935e8e8 Mon Sep 17 00:00:00 2001 From: Charles Beauville Date: Tue, 18 Apr 2023 13:12:15 +0200 Subject: [PATCH] Make spacing before imports consistent --- doc/source/conf.py | 2 ++ examples/android/tflite_convertor/tfltransfer/bases/__init__.py | 1 + .../tflite_convertor/tfltransfer/bases/mobilenetv2_base.py | 1 + .../tflite_convertor/tfltransfer/bases/quantizable_base.py | 1 + .../tflite_convertor/tfltransfer/bases/saved_model_base.py | 1 + examples/android/tflite_convertor/tfltransfer/heads/__init__.py | 1 + .../tflite_convertor/tfltransfer/heads/keras_model_head.py | 1 + .../tfltransfer/heads/logits_saved_model_head.py | 1 + .../tfltransfer/heads/softmax_classifier_head.py | 1 + .../tflite_convertor/tfltransfer/model_correctness_test.py | 1 + .../android/tflite_convertor/tfltransfer/optimizers/__init__.py | 1 + .../android/tflite_convertor/tfltransfer/optimizers/adam.py | 1 + examples/android/tflite_convertor/tfltransfer/optimizers/sgd.py | 1 + .../tflite_convertor/tfltransfer/tflite_transfer_convert.py | 1 + .../tflite_convertor/tfltransfer/tflite_transfer_converter.py | 1 + .../tfltransfer/tflite_transfer_converter_test.py | 1 + examples/android/tflite_convertor/tfltransfer/utils.py | 1 + examples/mxnet_from_centralized_to_federated/client.py | 1 + examples/mxnet_from_centralized_to_federated/server.py | 1 + examples/pytorch_from_centralized_to_federated/client.py | 1 + examples/quickstart_jax/client.py | 1 + examples/quickstart_jax/jax_training.py | 1 + examples/quickstart_mxnet/client.py | 1 + examples/quickstart_mxnet/server.py | 1 + src/py/flwr/__init__.py | 1 + src/py/flwr/__init___test.py | 1 + src/py/flwr/client/grpc_client/connection_test.py | 1 + src/py/flwr/common/dp.py | 1 + src/py/flwr/common/logger.py | 2 ++ src/py/flwr/common/telemetry.py | 1 + src/py/flwr/common/telemetry_test.py | 1 + src/py/flwr/common/version.py | 2 ++ src/py/flwr/server/criterion_test.py | 1 + src/py/flwr/server/grpc_server/grpc_server_test.py | 2 ++ src/py/flwr/server/history.py | 1 + src/py/flwr/server/state/__init__.py | 1 + src/py/flwr/server/strategy/dpfedavg_fixed.py | 1 + src/py/flwr/server/strategy/fedavgm_test.py | 1 + src/py/flwr/server/strategy/fedmedian_test.py | 1 + src/py/flwr/server/strategy/krum_test.py | 1 + src/py/flwr/server/strategy/multikrum_test.py | 1 + src/py/flwr/server/utils/tensorboard.py | 2 ++ src/py/flwr/server/utils/validator.py | 2 ++ src/py/flwr/server/utils/validator_test.py | 2 ++ src/py/flwr/simulation/__init__.py | 1 + src/py/flwr_tool/init_py_check.py | 1 + src/py/flwr_tool/protoc.py | 1 + src/py/flwr_tool/protoc_test.py | 1 + 48 files changed, 55 insertions(+) diff --git a/doc/source/conf.py b/doc/source/conf.py index 383ef40c61a4..edb56e449532 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== + + import os import sys from sphinx.application import ConfigError diff --git a/examples/android/tflite_convertor/tfltransfer/bases/__init__.py b/examples/android/tflite_convertor/tfltransfer/bases/__init__.py index 4563fa582189..f0b0619fa243 100644 --- a/examples/android/tflite_convertor/tfltransfer/bases/__init__.py +++ b/examples/android/tflite_convertor/tfltransfer/bases/__init__.py @@ -13,5 +13,6 @@ # limitations under the License. """Shortcuts for base model configurations.""" + from .mobilenetv2_base import MobileNetV2Base from .saved_model_base import SavedModelBase diff --git a/examples/android/tflite_convertor/tfltransfer/bases/mobilenetv2_base.py b/examples/android/tflite_convertor/tfltransfer/bases/mobilenetv2_base.py index 77fd0246b442..33ccffd17646 100644 --- a/examples/android/tflite_convertor/tfltransfer/bases/mobilenetv2_base.py +++ b/examples/android/tflite_convertor/tfltransfer/bases/mobilenetv2_base.py @@ -13,6 +13,7 @@ # limitations under the License. """Base model configuration for MobileNetV2.""" + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/android/tflite_convertor/tfltransfer/bases/quantizable_base.py b/examples/android/tflite_convertor/tfltransfer/bases/quantizable_base.py index 2178492cf3f5..bbdf36a08ef8 100644 --- a/examples/android/tflite_convertor/tfltransfer/bases/quantizable_base.py +++ b/examples/android/tflite_convertor/tfltransfer/bases/quantizable_base.py @@ -13,6 +13,7 @@ # limitations under the License. """Base model abstract base class that handles quantization.""" + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/android/tflite_convertor/tfltransfer/bases/saved_model_base.py b/examples/android/tflite_convertor/tfltransfer/bases/saved_model_base.py index b25f88f2b830..2477346f4663 100644 --- a/examples/android/tflite_convertor/tfltransfer/bases/saved_model_base.py +++ b/examples/android/tflite_convertor/tfltransfer/bases/saved_model_base.py @@ -13,6 +13,7 @@ # limitations under the License. """Base model configuration that reads a specified SavedModel.""" + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/android/tflite_convertor/tfltransfer/heads/__init__.py b/examples/android/tflite_convertor/tfltransfer/heads/__init__.py index 7b4d587c520f..487bce0ab9fc 100644 --- a/examples/android/tflite_convertor/tfltransfer/heads/__init__.py +++ b/examples/android/tflite_convertor/tfltransfer/heads/__init__.py @@ -13,6 +13,7 @@ # limitations under the License. """Shortcuts for head model configurations.""" + from .keras_model_head import KerasModelHead from .logits_saved_model_head import LogitsSavedModelHead from .softmax_classifier_head import SoftmaxClassifierHead diff --git a/examples/android/tflite_convertor/tfltransfer/heads/keras_model_head.py b/examples/android/tflite_convertor/tfltransfer/heads/keras_model_head.py index 9524a43384de..55188ea0a746 100644 --- a/examples/android/tflite_convertor/tfltransfer/heads/keras_model_head.py +++ b/examples/android/tflite_convertor/tfltransfer/heads/keras_model_head.py @@ -13,6 +13,7 @@ # limitations under the License. """Head model configuration for Keras models.""" + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/android/tflite_convertor/tfltransfer/heads/logits_saved_model_head.py b/examples/android/tflite_convertor/tfltransfer/heads/logits_saved_model_head.py index 86dc68355969..a8990cb4cdbd 100644 --- a/examples/android/tflite_convertor/tfltransfer/heads/logits_saved_model_head.py +++ b/examples/android/tflite_convertor/tfltransfer/heads/logits_saved_model_head.py @@ -13,6 +13,7 @@ # limitations under the License. """Head model configuration for classifier SavedModels.""" + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/android/tflite_convertor/tfltransfer/heads/softmax_classifier_head.py b/examples/android/tflite_convertor/tfltransfer/heads/softmax_classifier_head.py index 86b323d1b0bc..af869a90b7d3 100644 --- a/examples/android/tflite_convertor/tfltransfer/heads/softmax_classifier_head.py +++ b/examples/android/tflite_convertor/tfltransfer/heads/softmax_classifier_head.py @@ -13,6 +13,7 @@ # limitations under the License. """Head model configuration for simple softmax classifiers.""" + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/android/tflite_convertor/tfltransfer/model_correctness_test.py b/examples/android/tflite_convertor/tfltransfer/model_correctness_test.py index 89f489855b8e..a842c1b7a241 100644 --- a/examples/android/tflite_convertor/tfltransfer/model_correctness_test.py +++ b/examples/android/tflite_convertor/tfltransfer/model_correctness_test.py @@ -13,6 +13,7 @@ # limitations under the License. """End-to-end tests that check model correctness.""" + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/android/tflite_convertor/tfltransfer/optimizers/__init__.py b/examples/android/tflite_convertor/tfltransfer/optimizers/__init__.py index ed6d4f1ef2b2..01478aef0efd 100644 --- a/examples/android/tflite_convertor/tfltransfer/optimizers/__init__.py +++ b/examples/android/tflite_convertor/tfltransfer/optimizers/__init__.py @@ -13,5 +13,6 @@ # limitations under the License. """Shortcuts for optimizer configurations.""" + from .adam import Adam from .sgd import SGD diff --git a/examples/android/tflite_convertor/tfltransfer/optimizers/adam.py b/examples/android/tflite_convertor/tfltransfer/optimizers/adam.py index 17a294fca2a2..2fe4e1442bb3 100644 --- a/examples/android/tflite_convertor/tfltransfer/optimizers/adam.py +++ b/examples/android/tflite_convertor/tfltransfer/optimizers/adam.py @@ -13,6 +13,7 @@ # limitations under the License. """Adam optimizer implementation for transfer learning models.""" + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/android/tflite_convertor/tfltransfer/optimizers/sgd.py b/examples/android/tflite_convertor/tfltransfer/optimizers/sgd.py index e08862856eb3..09d22ba2fcad 100644 --- a/examples/android/tflite_convertor/tfltransfer/optimizers/sgd.py +++ b/examples/android/tflite_convertor/tfltransfer/optimizers/sgd.py @@ -13,6 +13,7 @@ # limitations under the License. """SGD optimizer implementation for transfer learning models.""" + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/android/tflite_convertor/tfltransfer/tflite_transfer_convert.py b/examples/android/tflite_convertor/tfltransfer/tflite_transfer_convert.py index 72a7207b709d..93dcfd8a67d5 100644 --- a/examples/android/tflite_convertor/tfltransfer/tflite_transfer_convert.py +++ b/examples/android/tflite_convertor/tfltransfer/tflite_transfer_convert.py @@ -16,6 +16,7 @@ Converts a pair of TF models to a TFLite transfer learning model. """ + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/android/tflite_convertor/tfltransfer/tflite_transfer_converter.py b/examples/android/tflite_convertor/tfltransfer/tflite_transfer_converter.py index 772d39e17b72..bff3456f36ec 100644 --- a/examples/android/tflite_convertor/tfltransfer/tflite_transfer_converter.py +++ b/examples/android/tflite_convertor/tfltransfer/tflite_transfer_converter.py @@ -19,6 +19,7 @@ transfer learning library. """ + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/android/tflite_convertor/tfltransfer/tflite_transfer_converter_test.py b/examples/android/tflite_convertor/tfltransfer/tflite_transfer_converter_test.py index d375d13eef5f..fa7e53c097bc 100644 --- a/examples/android/tflite_convertor/tfltransfer/tflite_transfer_converter_test.py +++ b/examples/android/tflite_convertor/tfltransfer/tflite_transfer_converter_test.py @@ -13,6 +13,7 @@ # limitations under the License. """Tests for tflite_transfer_converter.""" + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/android/tflite_convertor/tfltransfer/utils.py b/examples/android/tflite_convertor/tfltransfer/utils.py index 26982cb4eb50..5648a449c7e7 100644 --- a/examples/android/tflite_convertor/tfltransfer/utils.py +++ b/examples/android/tflite_convertor/tfltransfer/utils.py @@ -13,6 +13,7 @@ # limitations under the License. """Helper utilities for various parts of the converter.""" + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/mxnet_from_centralized_to_federated/client.py b/examples/mxnet_from_centralized_to_federated/client.py index bb666a26508e..3a3a9de146ef 100644 --- a/examples/mxnet_from_centralized_to_federated/client.py +++ b/examples/mxnet_from_centralized_to_federated/client.py @@ -1,5 +1,6 @@ """Flower client example using MXNet for MNIST classification.""" + from typing import Dict, List, Tuple import flwr as fl diff --git a/examples/mxnet_from_centralized_to_federated/server.py b/examples/mxnet_from_centralized_to_federated/server.py index 871aa4e8ec99..29cbce1884d1 100644 --- a/examples/mxnet_from_centralized_to_federated/server.py +++ b/examples/mxnet_from_centralized_to_federated/server.py @@ -1,5 +1,6 @@ """Flower server example.""" + import flwr as fl if __name__ == "__main__": diff --git a/examples/pytorch_from_centralized_to_federated/client.py b/examples/pytorch_from_centralized_to_federated/client.py index 9e655254ad1b..a863f0e63ca2 100644 --- a/examples/pytorch_from_centralized_to_federated/client.py +++ b/examples/pytorch_from_centralized_to_federated/client.py @@ -1,5 +1,6 @@ """Flower client example using PyTorch for CIFAR-10 image classification.""" + import os import sys import timeit diff --git a/examples/quickstart_jax/client.py b/examples/quickstart_jax/client.py index 1137079d2be6..f9b056276deb 100644 --- a/examples/quickstart_jax/client.py +++ b/examples/quickstart_jax/client.py @@ -1,5 +1,6 @@ """Flower client example using JAX for linear regression.""" + from typing import Dict, List, Tuple, Callable import flwr as fl diff --git a/examples/quickstart_jax/jax_training.py b/examples/quickstart_jax/jax_training.py index a2e23a0927bc..2b523a08516e 100644 --- a/examples/quickstart_jax/jax_training.py +++ b/examples/quickstart_jax/jax_training.py @@ -7,6 +7,7 @@ please read the JAX documentation or the mentioned tutorial. """ + from typing import Dict, List, Tuple, Callable import jax import jax.numpy as jnp diff --git a/examples/quickstart_mxnet/client.py b/examples/quickstart_mxnet/client.py index 6c2b2e99775d..b0c937f7350f 100644 --- a/examples/quickstart_mxnet/client.py +++ b/examples/quickstart_mxnet/client.py @@ -5,6 +5,7 @@ https://mxnet.apache.org/api/python/docs/tutorials/packages/gluon/image/mnist.html """ + import flwr as fl import numpy as np import mxnet as mx diff --git a/examples/quickstart_mxnet/server.py b/examples/quickstart_mxnet/server.py index 871aa4e8ec99..29cbce1884d1 100644 --- a/examples/quickstart_mxnet/server.py +++ b/examples/quickstart_mxnet/server.py @@ -1,5 +1,6 @@ """Flower server example.""" + import flwr as fl if __name__ == "__main__": diff --git a/src/py/flwr/__init__.py b/src/py/flwr/__init__.py index c6b4fbaefc54..0ae5f6ea7e77 100644 --- a/src/py/flwr/__init__.py +++ b/src/py/flwr/__init__.py @@ -14,6 +14,7 @@ # ============================================================================== """Flower main package.""" + from flwr.common.version import package_version as _package_version from . import client, common, server, simulation diff --git a/src/py/flwr/__init___test.py b/src/py/flwr/__init___test.py index 8744c23e285f..161c23f25345 100644 --- a/src/py/flwr/__init___test.py +++ b/src/py/flwr/__init___test.py @@ -14,6 +14,7 @@ # ============================================================================== """Test for flwr __init__.py.""" + import semver diff --git a/src/py/flwr/client/grpc_client/connection_test.py b/src/py/flwr/client/grpc_client/connection_test.py index d1739af0e01e..093a00bd38fc 100644 --- a/src/py/flwr/client/grpc_client/connection_test.py +++ b/src/py/flwr/client/grpc_client/connection_test.py @@ -14,6 +14,7 @@ # ============================================================================== """Tests for module connection.""" + import concurrent.futures import socket from contextlib import closing diff --git a/src/py/flwr/common/dp.py b/src/py/flwr/common/dp.py index 0e58e9390cc8..6c5c0936bbbb 100644 --- a/src/py/flwr/common/dp.py +++ b/src/py/flwr/common/dp.py @@ -14,6 +14,7 @@ # ============================================================================== """Building block functions for DP algorithms.""" + from typing import Tuple import numpy as np diff --git a/src/py/flwr/common/logger.py b/src/py/flwr/common/logger.py index c9e906a6fa16..d324ce3a8d05 100644 --- a/src/py/flwr/common/logger.py +++ b/src/py/flwr/common/logger.py @@ -13,6 +13,8 @@ # limitations under the License. # ============================================================================== """Flower Logger.""" + + import logging from logging import LogRecord from logging.handlers import HTTPHandler diff --git a/src/py/flwr/common/telemetry.py b/src/py/flwr/common/telemetry.py index 43038721ce81..12c42e4ddbf9 100644 --- a/src/py/flwr/common/telemetry.py +++ b/src/py/flwr/common/telemetry.py @@ -14,6 +14,7 @@ # ============================================================================== """Flower telemetry.""" + import datetime import json import logging diff --git a/src/py/flwr/common/telemetry_test.py b/src/py/flwr/common/telemetry_test.py index 5103c9669115..827684a0a387 100644 --- a/src/py/flwr/common/telemetry_test.py +++ b/src/py/flwr/common/telemetry_test.py @@ -14,6 +14,7 @@ # ============================================================================== """Telemetry tests.""" + import time import unittest from typing import Callable diff --git a/src/py/flwr/common/version.py b/src/py/flwr/common/version.py index 2f37a7d3ddaf..a8a94593815f 100644 --- a/src/py/flwr/common/version.py +++ b/src/py/flwr/common/version.py @@ -1,4 +1,6 @@ """Flower package version helper.""" + + import sys from typing import Tuple diff --git a/src/py/flwr/server/criterion_test.py b/src/py/flwr/server/criterion_test.py index 6a05a02c65dc..ecaeaf2df8ee 100644 --- a/src/py/flwr/server/criterion_test.py +++ b/src/py/flwr/server/criterion_test.py @@ -14,6 +14,7 @@ # ============================================================================== """Tests for criterion sampling.""" + from unittest.mock import MagicMock from flwr.server.client_manager import SimpleClientManager diff --git a/src/py/flwr/server/grpc_server/grpc_server_test.py b/src/py/flwr/server/grpc_server/grpc_server_test.py index de89e645f047..862f94a3fd53 100644 --- a/src/py/flwr/server/grpc_server/grpc_server_test.py +++ b/src/py/flwr/server/grpc_server/grpc_server_test.py @@ -13,6 +13,8 @@ # limitations under the License. # ============================================================================== """Tests for module server.""" + + import socket import subprocess from contextlib import closing diff --git a/src/py/flwr/server/history.py b/src/py/flwr/server/history.py index cbb1212b8525..4389cf7172dc 100644 --- a/src/py/flwr/server/history.py +++ b/src/py/flwr/server/history.py @@ -14,6 +14,7 @@ # ============================================================================== """Training history.""" + from functools import reduce from typing import Dict, List, Tuple diff --git a/src/py/flwr/server/state/__init__.py b/src/py/flwr/server/state/__init__.py index 28a744c11e12..eb5185d95038 100644 --- a/src/py/flwr/server/state/__init__.py +++ b/src/py/flwr/server/state/__init__.py @@ -14,6 +14,7 @@ # ============================================================================== """Flower server state.""" + from .in_memory_state import InMemoryState as InMemoryState from .sqlite_state import SqliteState as SqliteState from .state import State as State diff --git a/src/py/flwr/server/strategy/dpfedavg_fixed.py b/src/py/flwr/server/strategy/dpfedavg_fixed.py index bb5953bae156..a78e94aa87ad 100644 --- a/src/py/flwr/server/strategy/dpfedavg_fixed.py +++ b/src/py/flwr/server/strategy/dpfedavg_fixed.py @@ -17,6 +17,7 @@ Paper: https://arxiv.org/pdf/1710.06963.pdf """ + from typing import Dict, List, Optional, Tuple, Union from flwr.common import EvaluateIns, EvaluateRes, FitIns, FitRes, Parameters, Scalar diff --git a/src/py/flwr/server/strategy/fedavgm_test.py b/src/py/flwr/server/strategy/fedavgm_test.py index 1a22305443dd..1007946a79c8 100644 --- a/src/py/flwr/server/strategy/fedavgm_test.py +++ b/src/py/flwr/server/strategy/fedavgm_test.py @@ -14,6 +14,7 @@ # ============================================================================== """FedAvgM tests.""" + from typing import List, Tuple, Union from unittest.mock import MagicMock diff --git a/src/py/flwr/server/strategy/fedmedian_test.py b/src/py/flwr/server/strategy/fedmedian_test.py index e9a27eb78709..3230deed8f6c 100644 --- a/src/py/flwr/server/strategy/fedmedian_test.py +++ b/src/py/flwr/server/strategy/fedmedian_test.py @@ -14,6 +14,7 @@ # ============================================================================== """FedMedian tests.""" + from typing import List, Tuple from unittest.mock import MagicMock diff --git a/src/py/flwr/server/strategy/krum_test.py b/src/py/flwr/server/strategy/krum_test.py index 89ec27ba2a28..e92191172cea 100644 --- a/src/py/flwr/server/strategy/krum_test.py +++ b/src/py/flwr/server/strategy/krum_test.py @@ -14,6 +14,7 @@ # ============================================================================== """Krum tests.""" + from typing import List, Tuple from unittest.mock import MagicMock diff --git a/src/py/flwr/server/strategy/multikrum_test.py b/src/py/flwr/server/strategy/multikrum_test.py index 8bc18c1aaf65..ea1a0852c48d 100644 --- a/src/py/flwr/server/strategy/multikrum_test.py +++ b/src/py/flwr/server/strategy/multikrum_test.py @@ -14,6 +14,7 @@ # ============================================================================== """Krum tests.""" + from typing import List, Tuple from unittest.mock import MagicMock diff --git a/src/py/flwr/server/utils/tensorboard.py b/src/py/flwr/server/utils/tensorboard.py index 6c5fca9368f9..6c8b914241a1 100644 --- a/src/py/flwr/server/utils/tensorboard.py +++ b/src/py/flwr/server/utils/tensorboard.py @@ -13,6 +13,8 @@ # limitations under the License. # ============================================================================== """Flower TensorBoard utilities.""" + + import os from datetime import datetime from typing import Callable, Dict, List, Optional, Tuple, TypeVar, Union, cast diff --git a/src/py/flwr/server/utils/validator.py b/src/py/flwr/server/utils/validator.py index 252696353e57..8ac34599321a 100644 --- a/src/py/flwr/server/utils/validator.py +++ b/src/py/flwr/server/utils/validator.py @@ -13,6 +13,8 @@ # limitations under the License. # ============================================================================== """Validators.""" + + from typing import List, Union from flwr.proto.task_pb2 import TaskIns, TaskRes diff --git a/src/py/flwr/server/utils/validator_test.py b/src/py/flwr/server/utils/validator_test.py index c90f64a087f5..18fd2ecce58c 100644 --- a/src/py/flwr/server/utils/validator_test.py +++ b/src/py/flwr/server/utils/validator_test.py @@ -13,6 +13,8 @@ # limitations under the License. # ============================================================================== """Validator tests.""" + + import unittest from typing import List, Tuple diff --git a/src/py/flwr/simulation/__init__.py b/src/py/flwr/simulation/__init__.py index d59f2a8914b2..d8effdf40e1b 100644 --- a/src/py/flwr/simulation/__init__.py +++ b/src/py/flwr/simulation/__init__.py @@ -14,6 +14,7 @@ # ============================================================================== """Flower simulation.""" + import importlib is_ray_installed = importlib.util.find_spec("ray") is not None diff --git a/src/py/flwr_tool/init_py_check.py b/src/py/flwr_tool/init_py_check.py index b47f7382e583..fe8e12839d23 100755 --- a/src/py/flwr_tool/init_py_check.py +++ b/src/py/flwr_tool/init_py_check.py @@ -6,6 +6,7 @@ python -m flwr_tool.init_py_check src/py/flwr """ + import os import re import sys diff --git a/src/py/flwr_tool/protoc.py b/src/py/flwr_tool/protoc.py index 0a87bd09ad27..2b9c83b6cdc4 100644 --- a/src/py/flwr_tool/protoc.py +++ b/src/py/flwr_tool/protoc.py @@ -14,6 +14,7 @@ # ============================================================================== """This module contains functions related to proto compilation.""" + import glob from os import path diff --git a/src/py/flwr_tool/protoc_test.py b/src/py/flwr_tool/protoc_test.py index 6b7a6fb2cde8..07e7dd833e9d 100644 --- a/src/py/flwr_tool/protoc_test.py +++ b/src/py/flwr_tool/protoc_test.py @@ -14,6 +14,7 @@ # ============================================================================== """This module contains functions related to proto compilation.""" + from os import path from .protoc import IN_PATH, OUT_PATH, PROTO_FILES