Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grass.pygrass: Fixed E402 in pygrass/utils #4759

Merged
merged 3 commits into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading