Skip to content

Commit

Permalink
update flake8 checking config in setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoXing1996 committed Aug 29, 2023
1 parent 377c7bd commit 2b2fbe8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
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

0 comments on commit 2b2fbe8

Please # to comment.