[GRASS-git] [OSGeo/grass-addons] 6e9398: style: Fix all other flake8-gettext (INT) errors (...

Edouard Choinière noreply at github.com
Sat Feb 8 17:42:46 PST 2025


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

  Changed paths:
    M pyproject.toml
    M src/display/d.vect.thematic2/d.vect.thematic2.py
    M src/general/g.citation/g.citation.py
    M src/general/g.compare.md5/g.compare.md5.py
    M src/gui/wxpython/wx.metadata/m.csw.update/m.csw.update.py
    M src/gui/wxpython/wx.mwprecip/mw3.py
    M src/gui/wxpython/wx.mwprecip/pgwrapper.py
    M src/imagery/i.eodag/i.eodag.py
    M src/imagery/i.landsat/i.landsat.download/i.landsat.download.py
    M src/imagery/i.landsat/i.landsat.qa/i.landsat.qa.py
    M src/imagery/i.modis/i.modis.download/i.modis.download.py
    M src/imagery/i.modis/i.modis.import/i.modis.import.py
    M src/imagery/i.segment.stats/i.segment.stats.py
    M src/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py
    M src/imagery/i.sentinel/i.sentinel.import/i.sentinel.import.py
    M src/imagery/i.signature.copy/i.signature.copy.py
    M src/imagery/i.signature.list/i.signature.list.py
    M src/imagery/i.signature.remove/i.signature.remove.py
    M src/imagery/i.variance/i.variance.py
    M src/raster/r.area.createweight/r.area.createweight.py
    M src/raster/r.boxplot/r.boxplot.py
    M src/raster/r.buildvrt.gdal/r.buildvrt.gdal.py
    M src/raster/r.diversity/r.diversity.py
    M src/raster/r.edm.eval/r.edm.eval.py
    M src/raster/r.fusion/r.fusion.py
    M src/raster/r.futures/r.futures.calib/r.futures.calib.py
    M src/raster/r.futures/r.futures.demand/r.futures.demand.py
    M src/raster/r.futures/r.futures.parallelpga/r.futures.parallelpga.py
    M src/raster/r.in.ogc/r.in.ogc.coverages/r.in.ogc.coverages.py
    M src/raster/r.in.pdal/r.in.pdal.py
    M src/raster/r.in.vect/r.in.vect.py
    M src/raster/r.in.wcs/r.in.wcs.py
    M src/raster/r.local.relief/r.local.relief.py
    M src/raster/r.maxent.lambdas/r.maxent.lambdas.py
    M src/raster/r.maxent.predict/r.maxent.predict.py
    M src/raster/r.maxent.setup/r.maxent.setup.py
    M src/raster/r.maxent.train/r.maxent.train.py
    M src/raster/r.mess/r.mess.py
    M src/raster/r.object.activelearning/r.object.activelearning.py
    M src/raster/r.object.thickness/r.object.thickness.py
    M src/raster/r.out.maxent_swd/r.out.maxent_swd.py
    M src/raster/r.random.walk/r.random.walk.py
    M src/raster/r.recode.attr/r.recode.attr.py
    M src/raster/r.series.boxplot/r.series.boxplot.py
    M src/raster/r.series.diversity/r.series.diversity.py
    M src/raster/r.skyview/r.skyview.py
    M src/raster/r.slope.direction/r.slope.direction.py
    M src/raster/r.slopeunits/r.slopeunits.metrics/r.slopeunits.metrics.py
    M src/raster/r.sun.daily/r.sun.daily.py
    M src/raster/r.vect.stats/r.vect.stats.py
    M src/temporal/t.rast.boxplot/t.rast.boxplot.py
    M src/temporal/t.rast.import.netcdf/t.rast.import.netcdf.py
    M src/temporal/t.rast.kappa/t.rast.kappa.py
    M src/temporal/t.rast.line/t.rast.line.py
    M src/temporal/t.rast.null/t.rast.null.py
    M src/temporal/t.rast.out.xyz/t.rast.out.xyz.py
    M src/temporal/t.rast.what.aggr/t.rast.what.aggr.py
    M src/temporal/t.stac/libstac/staclib.py
    M src/temporal/t.stac/t.stac.catalog/t.stac.catalog.py
    M src/temporal/t.stac/t.stac.item/t.stac.item.py
    M src/vector/v.boxplot/v.boxplot.py
    M src/vector/v.centerline/v.centerline.py
    M src/vector/v.concave.hull/v.concave.hull.py
    M src/vector/v.in.gbif/v.in.gbif.py
    M src/vector/v.in.geopaparazzi/v.in.geopaparazzi.py
    M src/vector/v.in.ogc/v.in.ogc.features/v.in.ogc.features.py
    M src/vector/v.krige/v.krige.py
    M src/vector/v.maxent.swd/v.maxent.swd.py
    M src/vector/v.scatterplot/v.scatterplot.py
    M src/vector/v.strds.stats/v.strds.stats.py
    M src/vector/v.stream.order/v.stream.order.py
    M src/vector/v.surf.icw/v.surf.icw.py
    M src/vector/v.tin.to.rast/v.tin.to.rast.py
    M src/vector/v.to.rast.multi/v.to.rast.multi.py
    M src/vector/v.what.strds.timestamp/v.what.strds.timestamp.py

  Log Message:
  -----------
  style: Fix all other flake8-gettext (INT) errors (INT001, INT002, INT003) (#1303)

* style: Fix f-string-in-get-text-func-call (INT001)

Fixes: f-string is resolved before function call; consider `_("string %s") % arg`

Ruff rule: https://docs.astral.sh/ruff/rules/f-string-in-get-text-func-call/

* style: A single unknown float shouldn't need to be translated

* style: Fix format-in-get-text-func-call (INT002)

Fixes: `format` method argument is resolved before function call; consider `_("string %s") % arg`

Ruff rule: https://docs.astral.sh/ruff/rules/format-in-get-text-func-call/

* style: Fix printf-in-get-text-func-call (INT003)

Fixes: printf-style format is resolved before function call; consider `_("string %s") % arg`

Ruff rule: https://docs.astral.sh/ruff/rules/printf-in-get-text-func-call/



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