[GRASS-git] [OSGeo/grass] 533070: style: Fix unused-import (F401) (#4521)

Edouard Choinière noreply at github.com
Wed Oct 23 14:12:25 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 533070dbc9807657e96ec376f23ab6db64fbdc9a
      https://github.com/OSGeo/grass/commit/533070dbc9807657e96ec376f23ab6db64fbdc9a
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-10-23 (Wed, 23 Oct 2024)

  Changed paths:
    M .flake8
    M doc/notebooks/hydrology.ipynb
    M doc/notebooks/jupyter_tutorial.ipynb
    M doc/notebooks/parallelization_tutorial.ipynb
    M doc/notebooks/solar_potential.ipynb
    M doc/notebooks/viewshed_analysis.ipynb
    M lib/gis/testsuite/test_gis_lib_getl.py
    M pyproject.toml
    M python/grass/benchmark/__init__.py
    M python/grass/imaging/__init__.py
    M python/grass/jupyter/__init__.py
    M python/grass/pygrass/modules/__init__.py
    M python/grass/pygrass/modules/grid/__init__.py
    M python/grass/pygrass/modules/interface/__init__.py
    M python/grass/pygrass/modules/testsuite/test_import_isolation.py
    M python/grass/pygrass/rpc/__init__.py
    M python/grass/pygrass/vector/testsuite/test_filters.py
    M python/grass/pygrass/vector/testsuite/test_geometry.py
    M python/grass/pygrass/vector/testsuite/test_geometry_attrs.py
    M python/grass/pygrass/vector/testsuite/test_pygrass_vector_doctests.py
    M python/grass/pygrass/vector/testsuite/test_table.py
    M python/grass/pygrass/vector/testsuite/test_vector.py
    M python/grass/pygrass/vector/testsuite/test_vector3d.py
    M python/grass/script/__init__.py
    M python/grass/semantic_label/__init__.py
    M python/grass/temporal/testsuite/unittests_temporal_algebra_grs.py
    M python/grass/temporal/testsuite/unittests_temporal_algebra_mixed_stds.py
    M python/grass/temporal/testsuite/unittests_temporal_conditionals.py
    M raster/r.in.ascii/testsuite/test_r_in_ascii.py
    M raster/r.object.geometry/testsuite/test_r_object_geometry.py
    M raster/r.viewshed/testsuite/test_r_viewshed.py
    M scripts/db.in.ogr/testsuite/test_db_in_ogr.py
    M scripts/r.fillnulls/testsuite/test_r_fillnulls.py
    M scripts/r.grow/testsuite/test_r_grow.py
    M scripts/v.dissolve/v_dissolve.ipynb
    M temporal/t.rast.accumulate/testsuite/test_accumulation.py
    M temporal/t.rast.aggregate/testsuite/test_aggregation_absolute.py
    M temporal/t.rast.aggregate/testsuite/test_aggregation_absolute_parallel.py
    M temporal/t.rast.aggregate/testsuite/test_aggregation_relative.py
    M temporal/t.rast.algebra/testsuite/test_raster_algebra_operators.py
    M temporal/t.rast.extract/testsuite/test_t_rast_extract.py
    M temporal/t.rast.gapfill/testsuite/test_gapfill.py
    M temporal/t.rast.neighbors/testsuite/test_neighbors.py
    M temporal/t.rast.series/testsuite/test_series.py
    M temporal/t.rast.to.rast3/testsuite/test_strds_to_rast3.py
    M temporal/t.rast.to.vect/testsuite/test_to_vect.py
    M temporal/t.rast.univar/testsuite/test_t_rast_univar.py
    M temporal/t.rast3d.extract/testsuite/test_t_rast3d_extract.py
    M temporal/t.rast3d.univar/testsuite/test_t_rast3d_univar.py
    M temporal/t.shift/testsuite/test_shift.py
    M temporal/t.snap/testsuite/test_snap.py
    M temporal/t.support/testsuite/test_support_str3ds.py
    M temporal/t.support/testsuite/test_support_strds.py
    M temporal/t.support/testsuite/test_support_stvds.py
    M temporal/t.unregister/testsuite/test_unregister.py
    M vector/v.extract/testsuite/test_v_extract.py
    M vector/v.fill.holes/examples.ipynb
    M vector/v.in.ogr/testsuite/test_v_in_ogr.py

  Log Message:
  -----------
  style: Fix unused-import (F401) (#4521)

* t.rast.accumulate: Remove unused SimpleModule import in test_accumulation

* temporal: Fix unused-import (F401) in testsuite

* grass.temporal: Fix unused-import (F401)

* grass.benchmark: Fix unused-import (F401) by defining __all__

* grass.pygrass.vector: Fix unused-import (F401) for testsuite

* grass.pygrass.vector: Sort imports

* vector: Fix unused-import (F401) for testsuite

* scripts: Fix unused-import (F401) for testsuite

* raster: Fix unused-import (F401) for testsuite

* v.fill.holes: Fix unused-import (F401)

* doc: Fix unused-import (F401)

* grass.semantic_label: Fix unused-import (F401) by defining __all__ in __init__

* grass.pygrass.rpc: Fix unused-import (F401) in __init__

* grass.pygrass.modules.interface: Fix unused-import (F401) by defining __all__ in __init__

* grass.pygrass.modules.interface: Apply isort

* grass.pygrass.modules.grid: Fix unused-import (F401) by defining __all__ in __init__

* grass.pygrass.modules: Fix unused-import (F401) by defining __all__ in __init__

* grass.pygrass.modules: Apply isort

* grass.imaging: Fix unused-import (F401) by defining __all__ in __init__

* grass.imaging: Apply isort

* grass.jupyter: Fix unused-import (F401) by defining __all__ in __init__

* grass.jupyter: Apply isort

* pygrass: Ignore F401 (unused imports)

Ignored inline where the import is justified and isn't to fix later, and ignored in a per-file exclusion where the imports seemed to be for commented-out test case lines

* lib/gis: Fix F401 unused platform import in test_gis_lib_getl

* grass.script: Ignore F401 in `__init__.py` for setup import

* style: Remove exclusion for F401 ruff rule

* style: Remove unneeded flake8 exclusions for F401

* Apply suggestions from code review



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list