Skip to content

Commit

Permalink
Checks: Fix flake8 F401 imported but unused (#3535)
Browse files Browse the repository at this point in the history
F401 errors are most often caused by `__init__.py`, except one. The line `--per-file-ignores=__init__.py:F401` has been added to the .flake8 file to ignore `__init__.py`.
  • Loading branch information
mshukuno committed Mar 26, 2024
1 parent 704f446 commit 071e8db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ per-file-ignores =
# F821 undefined name 'unicode'
# F841 local variable assigned to but never used
# E741 ambiguous variable name 'l'
__init__.py: F401, F403
lib/init/grass.py: E501, E722, F821, F841, W605
utils/mkrest.py: E501, W605
utils/gitlog2changelog.py: E722, E712, W605
Expand Down
1 change: 0 additions & 1 deletion python/grass/pygrass/tests/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import grass.lib.gis as libgis
import grass.lib.raster as libraster
import grass.script as core
import grass.pygrass
import ctypes


Expand Down

0 comments on commit 071e8db

Please sign in to comment.