Skip to content

Commit

Permalink
raster: Fixed E402 by adding noqa exception (#4803)
Browse files Browse the repository at this point in the history
  • Loading branch information
arohanajit authored Dec 8, 2024
1 parent 5b83fd8 commit 54731c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ per-file-ignores =
# C wrappers call libgis.G_gisinit before importing other modules.
# TODO: Is this really needed?
python/grass/pygrass/vector/__init__.py: E402
python/grass/pygrass/raster/__init__.py: E402
python/grass/pygrass/vector/__init__.py: E402
python/grass/temporal/abstract_space_time_dataset.py: E722
python/grass/temporal/c_libraries_interface.py: E722
Expand Down
3 changes: 3 additions & 0 deletions python/grass/pygrass/raster/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

libgis.G_gisinit("")

# flake8: noqa: E402
# import pygrass modules
from grass.pygrass.errors import must_be_open
from grass.pygrass.gis.region import Region
Expand All @@ -25,6 +26,8 @@
from grass.pygrass.raster.segment import Segment
from grass.pygrass.raster.rowio import RowIO

# flake8: qa

WARN_OVERWRITE = "Raster map <{0}> already exists and will be overwritten"

test_raster_name = "Raster_test_map"
Expand Down

0 comments on commit 54731c1

Please sign in to comment.