diff --git a/.isort.cfg b/.isort.cfg index 96395e6bd8de..2611f17411f8 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -10,11 +10,11 @@ float_to_top=True filter_files=True # Skip docs/* as these are carefully crafted and aren't strictly code. -# Skip python/ray/*.py to avoid touching python/ray/__init__.py, which -# is also carefully crafted. +# Skip python/ray/__init__.py and python/ray/setup-dev.py, which +# are also carefully crafted. # For the rest we will gradually remove them from the blacklist as we # reformat the code to follow the style guide. -skip_glob=python/ray/*.py,doc/*,ci/*,python/ray/_raylet*,python/ray/_private/*,python/ray/air/*,python/ray/cloudpickle/*,python/ray/core/*,dashboard/*,python/ray/data/*,python/ray/experimental/*,python/ray/includes/*,python/ray/internal/*,python/ray/ray_operator/*,python/ray/scripts/*,python/ray/serve/*,python/ray/sgd/*,python/ray/streaming/*,python/ray/tests/*,python/ray/tests/*,python/ray/train/*,python/ray/tune/*,python/ray/util/*,python/ray/workers/*,python/ray/workflow/*,rllib/*,release/*, +skip_glob=python/ray/__init__.py,python/ray/setup-dev.py,python/ray/dag/*.py,doc/*,ci/*,python/ray/_raylet*,python/ray/_private/*,python/ray/air/*,python/ray/cloudpickle/*,python/ray/core/*,dashboard/*,python/ray/data/*,python/ray/experimental/*,python/ray/includes/*,python/ray/internal/*,python/ray/ray_operator/*,python/ray/scripts/*,python/ray/serve/*,python/ray/sgd/*,python/ray/streaming/*,python/ray/tests/*,python/ray/tests/*,python/ray/train/*,python/ray/tune/*,python/ray/util/*,python/ray/workers/*,python/ray/workflow/*,rllib/*,release/*, known_local_folder=ray known_afterray=psutil,setproctitle diff --git a/python/ray/exceptions.py b/python/ray/exceptions.py index 07c54ba38195..c4668753c91b 100644 --- a/python/ray/exceptions.py +++ b/python/ray/exceptions.py @@ -3,7 +3,6 @@ from typing import Optional, Union import colorama -import setproctitle import ray._private.ray_constants as ray_constants import ray.cloudpickle as pickle @@ -17,6 +16,8 @@ ) from ray.util.annotations import DeveloperAPI, PublicAPI +import setproctitle + @PublicAPI class RayError(Exception): diff --git a/python/ray/job_submission/__init__.py b/python/ray/job_submission/__init__.py index 40d47771cf4f..e89d9b696859 100644 --- a/python/ray/job_submission/__init__.py +++ b/python/ray/job_submission/__init__.py @@ -1,4 +1,4 @@ +from ray.dashboard.modules.job.common import JobInfo, JobStatus from ray.dashboard.modules.job.sdk import JobSubmissionClient -from ray.dashboard.modules.job.common import JobStatus, JobInfo __all__ = ["JobSubmissionClient", "JobStatus", "JobInfo"]