Skip to content

[CodeStyle][task 17] enable Ruff F811 rule in python/paddle/base #57398

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
Sep 16, 2023
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
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ ignore = [
"PLR1722",
"UP028",
"C403",
"F811",
"UP034",
"B011",
"C405",
Expand Down
1 change: 0 additions & 1 deletion python/paddle/base/dygraph/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import warnings
from ..framework import _get_paddle_place
import paddle
import warnings

__all__ = [
'no_grad',
Expand Down
1 change: 0 additions & 1 deletion python/paddle/base/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
from .reader import *
from . import core
from paddle.utils import deprecated
from paddle.base.framework import static_only

__all__ = reader.__all__

Expand Down
2 changes: 1 addition & 1 deletion python/paddle/base/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
)
from .unique_name import UniqueNameGenerator
from .framework import _get_paddle_place, _get_paddle_place_list
from paddle.base.framework import _set_expected_place, _current_expected_place
from paddle.base.framework import _set_expected_place
import logging
import warnings

Expand Down