[GRASS-git] [OSGeo/grass-addons] bf4049: style: Fix unconventional-import-alias (ICN001) (#...

Edouard Choinière noreply at github.com
Sun Feb 16 05:24:46 PST 2025


  Branch: refs/heads/grass8
  Home:   https://github.com/OSGeo/grass-addons
  Commit: bf4049162066516c6c61d6aae83a3cbf069207e9
      https://github.com/OSGeo/grass-addons/commit/bf4049162066516c6c61d6aae83a3cbf069207e9
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2025-02-16 (Sun, 16 Feb 2025)

  Changed paths:
    M pyproject.toml
    M src/gui/wxpython/wx.metadata/mdlib/cswutil.py
    M src/imagery/i.ann.maskrcnn/i.ann.maskrcnn.detect/i.ann.maskrcnn.detect.py
    M src/imagery/i.sentinel/i.sentinel.import/i.sentinel.import.py
    M src/imagery/i.sentinel/i.sentinel.mask/i.sentinel.mask.py
    M src/imagery/i.sentinel/i.sentinel.preproc/i.sentinel.preproc.py
    M src/imagery/i.variance/i.variance.py
    M src/raster/r.agent/libagent/playground.py
    M src/raster/r.area.createweight/r.area.createweight.py
    M src/raster/r.boxplot/r.boxplot.py
    M src/raster/r.colors.cubehelix/r.colors.cubehelix.py
    M src/raster/r.connectivity/r.connectivity.network/r.connectivity.network.py
    M src/raster/r.edm.eval/r.edm.eval.py
    M src/raster/r.fidimo/r.fidimo.py
    M src/raster/r.futures/r.futures.demand/r.futures.demand.py
    M src/raster/r.hypso/r.hypso.py
    M src/raster/r.popgrowth/r.popgrowth.py
    M src/raster/r.series.boxplot/r.series.boxplot.py
    M src/raster/r.width.funct/r.width.funct.py
    M src/temporal/t.rast.boxplot/t.rast.boxplot.py
    M src/temporal/t.rast.line/t.rast.line.py
    M src/vector/v.boxplot/v.boxplot.py
    M src/vector/v.class.ml/features.py
    M src/vector/v.class.ml/ml_functions.py
    M src/vector/v.faultdirections/v.faultdirections.py
    M src/vector/v.histogram/v.histogram.py
    M src/vector/v.in.wfs2/wfs_drv.py
    M src/vector/v.scatterplot/v.scatterplot.py
    M src/vector/v.stream.profiler/v.stream.profiler.py

  Log Message:
  -----------
  style: Fix unconventional-import-alias (ICN001) (#1317)

- `matplotlib` should be imported as `mpl`
- `numpy` should be imported as `np`
- `xml.etree.ElementTree` should be imported as `ET`

Ruff rule: https://docs.astral.sh/ruff/rules/unconventional-import-alias/



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


More information about the grass-commit mailing list