Skip to content

Commit

Permalink
grass.pygrass: Fixed E402 in vector/ (OSGeo#4715)
Browse files Browse the repository at this point in the history
  • Loading branch information
arohanajit authored Dec 19, 2024
1 parent 6930424 commit fce29ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,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/vector/__init__.py: E402
python/grass/temporal/datetime_math.py: E722
python/grass/temporal/spatial_topology_dataset_connector.py: E722
python/grass/temporal/temporal_algebra.py: E722
Expand Down
18 changes: 11 additions & 7 deletions python/grass/pygrass/vector/__init__.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
from os.path import join, exists
import grass.lib.gis as libgis
import ctypes


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

import grass.lib.vector as libvect
import ctypes

# import pygrass modules
from grass.pygrass.vector.vector_type import VTYPE
from grass.pygrass.errors import GrassError, must_be_open
from grass.pygrass.gis import Location

from grass.pygrass.vector.geometry import GEOOBJ as _GEOOBJ
from grass.pygrass.vector.geometry import read_line, read_next_line
from grass.pygrass.vector.geometry import Area as _Area
from grass.pygrass.vector.geometry import (
GEOOBJ as _GEOOBJ,
read_line,
read_next_line,
Area as _Area,
)
from grass.pygrass.vector.abstract import Info
from grass.pygrass.vector.basic import Bbox, Cats, Ilist

# flake8: qa


_NUMOF = {
"areas": libvect.Vect_get_num_areas,
Expand Down

0 comments on commit fce29ca

Please sign in to comment.