Skip to content

Commit

Permalink
doc: Ignore F401 in dialogs.py (#4488)
Browse files Browse the repository at this point in the history
dialogs.py has an instance of F401 error for unused import of grass library. However as mentioned in the comment and post discussion with @wenzeslaus I decided it would be better to ignore this error for now in case it breaks any underlying dependencies regarding gettext.install()
  • Loading branch information
arohanajit authored Oct 11, 2024
1 parent 2e0a8fa commit 21606ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ per-file-ignores =
__init__.py: F401, F403
man/build_html.py: E501
doc/python/m.distance.py: E501
doc/gui/wxpython/example/dialogs.py: F401
gui/scripts/d.wms.py: E501
gui/wxpython/image2target/*: F841, E722
gui/wxpython/image2target/g.gui.image2target.py: E501, F841
Expand Down
2 changes: 1 addition & 1 deletion doc/gui/wxpython/example/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# So we need to import it before any of the GUI code.
# NOTE: in this particular case, we don't really need the grass library;
# NOTE: we import it just for the side effects of gettext.install()
import grass
import grass # noqa: F401

from core import globalvar
from gui_core.dialogs import SimpleDialog
Expand Down

0 comments on commit 21606ad

Please sign in to comment.