Skip to content

Commit

Permalink
grass.pygrass: Fixed E402 in pygrass/utils (OSGeo#4759)
Browse files Browse the repository at this point in the history
* update

* update

---------

Co-authored-by: Arohan Ajit <[email protected]>
Co-authored-by: Edouard Choinière <[email protected]>
  • Loading branch information
3 people authored Dec 8, 2024
1 parent 0b29c8e commit 5b83fd8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ per-file-ignores =
python/grass/pygrass/vector/__init__.py: E402
python/grass/pygrass/raster/__init__.py: E402
python/grass/pygrass/vector/__init__.py: E402
python/grass/pygrass/utils.py: E402
python/grass/temporal/abstract_space_time_dataset.py: E722
python/grass/temporal/c_libraries_interface.py: E722
python/grass/temporal/core.py: E722
Expand Down
13 changes: 8 additions & 5 deletions python/grass/pygrass/utils.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import itertools
import fnmatch
import itertools
import os
from sqlite3 import OperationalError

import grass.lib.gis as libgis
from grass.script import core as grasscore
from grass.script import utils as grassutils

# flake8: noqa: E402
libgis.G_gisinit("")

import grass.lib.raster as libraster
from grass.lib.ctypes_preamble import String
from grass.script import core as grasscore
from grass.script import utils as grassutils

from grass.pygrass.errors import GrassError

# flake8: qa


test_vector_name = "Utils_test_vector"
test_raster_name = "Utils_test_raster"
Expand Down Expand Up @@ -461,7 +463,7 @@ def create_test_vector_map(map_name="test_vector"):
"""

from grass.pygrass.vector import VectorTopo
from grass.pygrass.vector.geometry import Point, Line, Centroid, Boundary
from grass.pygrass.vector.geometry import Boundary, Centroid, Line, Point

cols = [
("cat", "INTEGER PRIMARY KEY"),
Expand Down Expand Up @@ -589,6 +591,7 @@ def create_test_stream_network_map(map_name="streams"):

if __name__ == "__main__":
import doctest

from grass.script.core import run_command

create_test_vector_map(test_vector_name)
Expand Down

0 comments on commit 5b83fd8

Please sign in to comment.