Skip to content
New issue

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

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

Already on GitHub? # to your account

[Enhancement] Update flake8 checking config in setup.cfg #2007

Merged
merged 1 commit into from
Aug 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
2 changes: 1 addition & 1 deletion mmagic/configs/eg3d/eg3d_cvt-official-rgb_afhq-512x512.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from mmagic.models.editors.eg3d import EG3D, GaussianCamera, TriplaneGenerator

with read_base():
from .._base_.gen_default_runtime import * # noqa: F401,F403
from .._base_.gen_default_runtime import *

model = dict(
type=EG3D,
Expand Down
2 changes: 1 addition & 1 deletion mmagic/configs/eg3d/eg3d_cvt-official-rgb_ffhq-512x512.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from mmagic.models.editors.eg3d import EG3D, GaussianCamera, TriplaneGenerator

with read_base():
from .._base_.gen_default_runtime import * # noqa: F401,F403
from .._base_.gen_default_runtime import *

model = dict(
type=EG3D,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from mmagic.models.editors.eg3d import EG3D, TriplaneGenerator, UniformCamera

with read_base():
from .._base_.gen_default_runtime import * # noqa: F401,F403
from .._base_.gen_default_runtime import *

model = dict(
type=EG3D,
Expand Down
10 changes: 10 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ known_first_party = mmagic
known_third_party = PIL,cv2,lmdb,mmcv,numpy,onnx,onnxruntime,packaging,pymatting,pytest,pytorch_sphinx_theme,requests,scipy,titlecase,torch,torchvision,ts
no_lines_before = STDLIB,LOCALFOLDER
default_section = THIRDPARTY

[flake8]
# The E251 check is conflict with yapf in some situation.
# See https://github.com/google/yapf/issues/393
extend-ignore = E251
# The F401 check is wrong if the `__all__` variable is modified
# in `__init__.py`
per-file-ignores =
*/__init__.py: F401
mmagic/configs/*: F401,F403,F405
Loading