Skip to content

[CodeStyle][ruff] clean some I001 step: 12 #61710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,3 @@ known-first-party = ["paddle"]
"python/paddle/distributed/launch/context/__init__.py" = ["I001"]
"python/paddle/distributed/launch/controllers/__init__.py" = ["I001"]
"python/paddle/distributed/passes/__init__.py" = ["I001"]
"python/paddle/distributed/rpc/__init__.py" = ["I001"]
"python/paddle/incubate/distributed/fleet/__init__.py" = ["I001"]
"python/paddle/incubate/distributed/fleet/parameter_server/pslib/__init__.py" = ["I001"]
8 changes: 4 additions & 4 deletions python/paddle/distributed/rpc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
# limitations under the License.

from paddle.distributed.rpc.rpc import (
get_all_worker_infos,
get_current_worker_info,
get_worker_info,
init_rpc,
shutdown,
rpc_async,
rpc_sync,
get_worker_info,
get_all_worker_infos,
get_current_worker_info,
shutdown,
)

__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion python/paddle/incubate/distributed/fleet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

from paddle.distributed.fleet.recompute import (
recompute_sequential,
recompute_hybrid,
recompute_sequential,
)

__all__ = ["recompute_sequential", "recompute_hybrid"]
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
MPISymetricRoleMaker,
)

from .optimizer_factory import DistributedAdam # noqa: F401
from .optimizer_factory import FLEET_GLOBAL_DICT
from .optimizer_factory import (
FLEET_GLOBAL_DICT,
DistributedAdam, # noqa: F401
)


class PSLib(Fleet):
Expand Down