Skip to content
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

[Docathon][CodeStyle Fix No.4] enable F401 rule #6270

Merged
merged 2 commits into from
Oct 29, 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 ci_scripts/check_api_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import sys
import inspect
import ast
import paddle


def add_path(path):
Expand Down
2 changes: 0 additions & 2 deletions ci_scripts/check_copy_from_parsed_into_sample_code.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import sys
import re
import os


def check_copy_from_not_parsed(file):
Expand Down
4 changes: 1 addition & 3 deletions ci_scripts/doc-build-config/en/conf.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import sys
import os
import subprocess

# sys.path.insert(0, os.path.abspath('@PADDLE_BINARY_DIR@/python'))
import shlex
from recommonmark import parser, transform
import sys
import inspect
Expand All @@ -13,7 +11,7 @@
import re

try:
import paddle
import paddle # noqa: F401
except:
print("import paddle error")

Expand Down
5 changes: 1 addition & 4 deletions ci_scripts/doc-build-config/zh/conf.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import sys
import os
import subprocess
import sphinx_rtd_theme
import inspect
import ast

# sys.setdefaultencoding('utf-8')

# sys.path.insert(0, os.path.abspath('@PADDLE_BINARY_DIR@/python'))
import shlex
from recommonmark import parser, transform

import time

try:
import paddle
import paddle # noqa: F401
except:
print("import paddle error")
breathe_projects = {"PaddlePaddle": "/docs/doxyoutput/xml"}
Expand Down
1 change: 0 additions & 1 deletion docs/api/gen_alias_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import paddle
import inspect
import pkgutil
import os
import sys
import subprocess

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ ignore = [
# need to remove
"F541",
"I001",
"F401",
"W291",
"PLR1722",
"E711",
Expand Down