[GRASS-git] [OSGeo/grass-addons] f17c79: parser: Use #-space-% to allow writing PEP8-compli...

Markus Neteler noreply at github.com
Thu Feb 3 00:32:47 PST 2022


  Branch: refs/heads/grass8
  Home:   https://github.com/OSGeo/grass-addons
  Commit: f17c792f5de56c64ecfbe63ec315307872cf9d5c
      https://github.com/OSGeo/grass-addons/commit/f17c792f5de56c64ecfbe63ec315307872cf9d5c
  Author: Markus Neteler <neteler at gmail.com>
  Date:   2022-02-03 (Thu, 03 Feb 2022)

  Changed paths:
    M src/db/db.join/db.join.py
    M src/display/d.explanation.plot/d.explanation.plot.py
    M src/display/d.frame/d.frame.py
    M src/display/d.mon2/d.mon2.py
    M src/display/d.vect.colbp/d.vect.colbp.py
    M src/display/d.vect.colhist/d.vect.colhist.py
    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/general/g.copyall/g.copyall.py
    M src/general/g.download.location/g.download.location.py
    M src/general/g.isis3mt/g.isis3mt.py
    M src/general/g.proj.all/g.proj.all.py
    M src/general/g.proj.identify/g.proj.identify.py
    M src/general/g.rename.many/g.rename.many.py
    M src/gui/wxpython/wx.metadata/db.csw.admin/db.csw.admin.py
    M src/gui/wxpython/wx.metadata/db.csw.harvest/db.csw.harvest.py
    M src/gui/wxpython/wx.metadata/db.csw.run/db.csw.run.py
    M src/gui/wxpython/wx.metadata/g.gui.cswbrowser/g.gui.cswbrowser.py
    M src/gui/wxpython/wx.metadata/g.gui.metadata/g.gui.metadata.py
    M src/gui/wxpython/wx.metadata/m.csw.update/m.csw.update.py
    M src/gui/wxpython/wx.metadata/r.info.iso/r.info.iso.py
    M src/gui/wxpython/wx.metadata/t.info.iso/t.info.iso.py
    M src/gui/wxpython/wx.metadata/v.info.iso/v.info.iso.py
    M src/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
    M src/hadoop/hd/hd.db.connect/hd.db.connect.py
    M src/hadoop/hd/hd.esri2vector/hd.esri2vector.py
    M src/hadoop/hd/hd.hdfs.in.fs/hd.hdfs.in.fs.py
    M src/hadoop/hd/hd.hdfs.in.vector/hd.hdfs.in.vector.py
    M src/hadoop/hd/hd.hdfs.info/hd.hdfs.info.py
    M src/hadoop/hd/hd.hdfs.out.vector/hd.hdfs.out.vector.py
    M src/hadoop/hd/hd.hive.csv.table/hd.hive.csv.table.py
    M src/hadoop/hd/hd.hive.execute/hd.hive.execute.py
    M src/hadoop/hd/hd.hive.info/hd.hive.info.py
    M src/hadoop/hd/hd.hive.json.table/hd.hive.json.table.py
    M src/hadoop/hd/hd.hive.load/hd.hive.load.py
    M src/hadoop/hd/hd.hive.select/hd.hive.select.py
    M src/imagery/i.ann.maskrcnn/i.ann.maskrcnn.detect/i.ann.maskrcnn.detect.py
    M src/imagery/i.ann.maskrcnn/i.ann.maskrcnn.train/i.ann.maskrcnn.train.py
    M src/imagery/i.cutlines/i.cutlines.py
    M src/imagery/i.cva/i.cva.py
    M src/imagery/i.fusion.hpf/i.fusion.hpf.py
    M src/imagery/i.histo.match/i.histo.match.py
    M src/imagery/i.image.bathymetry/i.image.bathymetry.py
    M src/imagery/i.in.probav/i.in.probav.py
    M src/imagery/i.landsat/i.landsat.download/i.landsat.download.py
    M src/imagery/i.landsat/i.landsat.import/i.landsat.import.py
    M src/imagery/i.landsat/i.landsat.qa/i.landsat.qa.py
    M src/imagery/i.landsat8.swlst/i.landsat8.swlst.py
    M src/imagery/i.lswt/i.lswt.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.nightlights.intercalibration/i.nightlights.intercalibration.py
    M src/imagery/i.ortho.corr/i.ortho.corr.py
    M src/imagery/i.pysptools.unmix/i.pysptools.unmix.py
    M src/imagery/i.sar.speckle/i.sar.speckle.py
    M src/imagery/i.segment.hierarchical/i.segment.hierarchical.py
    M src/imagery/i.segment.stats/i.segment.stats.py
    M src/imagery/i.segment.uspo/i.segment.uspo.py
    M src/imagery/i.sentinel/i.sentinel.coverage/i.sentinel.coverage.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.sentinel/i.sentinel.mask/i.sentinel.mask.py
    M src/imagery/i.sentinel/i.sentinel.parallel.download/i.sentinel.parallel.download.py
    M src/imagery/i.sentinel/i.sentinel.preproc/i.sentinel.preproc.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/imagery/i.zero2null/i.zero2null.py
    M src/misc/m.csv.clean/m.csv.clean.py
    M src/misc/m.printws/m.printws.py
    M src/raster/r.agent/r.agent.aco/r.agent.aco.py
    M src/raster/r.agent/r.agent.rand/r.agent.rand.py
    M src/raster/r.area.createweight/r.area.createweight.py
    M src/raster/r.basin/r.basin.py
    M src/raster/r.bioclim/r.bioclim.py
    M src/raster/r.catchment/r.catchment.py
    M src/raster/r.category.trim/r.category.trim.py
    M src/raster/r.cell.area/r.cell.area.py
    M src/raster/r.centroids/r.centroids.py
    M src/raster/r.clip/r.clip.py
    M src/raster/r.colors.cubehelix/r.colors.cubehelix.py
    M src/raster/r.colors.matplotlib/r.colors.matplotlib.py
    M src/raster/r.colors.out_sld/r.colors.out_sld.py
    M src/raster/r.confusionmatrix/r.confusionmatrix.py
    M src/raster/r.connectivity/r.connectivity.corridors/r.connectivity.corridors.py
    M src/raster/r.connectivity/r.connectivity.distance/r.connectivity.distance.py
    M src/raster/r.connectivity/r.connectivity.network/r.connectivity.network.py
    M src/raster/r.convert/r.convert
    M src/raster/r.convert/r.convert.all
    M src/raster/r.cpt2grass/r.cpt2grass.py
    M src/raster/r.denoise/r.denoise.py
    M src/raster/r.divergence/r.divergence.py
    M src/raster/r.diversity/r.diversity.py
    M src/raster/r.droka/r.droka.py
    M src/raster/r.edm.eval/r.edm.eval.sh
    M src/raster/r.estimap.recreation/r.estimap.recreation/r.estimap.recreation.py
    M src/raster/r.euro.ecosystem/r.euro.ecosystem.py
    M src/raster/r.exdet/r.exdet.py
    M src/raster/r.extract/r.extract.py
    M src/raster/r.fidimo/r.fidimo.py
    M src/raster/r.fill.category/r.fill.category.py
    M src/raster/r.flexure/r.flexure.py
    M src/raster/r.flowfill/r.flowfill.py
    M src/raster/r.forestfrag/r.forestfrag.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.devpressure/r.futures.devpressure.py
    M src/raster/r.futures/r.futures.gridvalidation/r.futures.gridvalidation.py
    M src/raster/r.futures/r.futures.parallelpga/r.futures.parallelpga.py
    M src/raster/r.futures/r.futures.potential/r.futures.potential.py
    M src/raster/r.futures/r.futures.potsurface/r.futures.potsurface.py
    M src/raster/r.futures/r.futures.validation/r.futures.validation.py
    M src/raster/r.gradient/r.gradient.py
    M src/raster/r.green/r.green.biomassfor/r.green.biomassfor.co2/r.green.biomassfor.co2.py
    M src/raster/r.green/r.green.biomassfor/r.green.biomassfor.financial/r.green.biomassfor.financial.py
    M src/raster/r.green/r.green.biomassfor/r.green.biomassfor.impact/r.green.biomassfor.impact.py
    M src/raster/r.green/r.green.biomassfor/r.green.biomassfor.legal/r.green.biomassfor.legal.py
    M src/raster/r.green/r.green.biomassfor/r.green.biomassfor.recommended/r.green.biomassfor.recommended.py
    M src/raster/r.green/r.green.biomassfor/r.green.biomassfor.technical/biomasfor.technical.py
    M src/raster/r.green/r.green.biomassfor/r.green.biomassfor.technical/r.green.biomassfor.technical.py
    M src/raster/r.green/r.green.biomassfor/r.green.biomassfor.theoretical/r.green.biomassfor.theoretical.py
    M src/raster/r.green/r.green.gshp/r.green.gshp.technical/r.green.gshp.technical.py
    M src/raster/r.green/r.green.gshp/r.green.gshp.theoretical/r.green.gshp.theoretical.py
    M src/raster/r.green/r.green.hydro/r.green.hydro.closest/r.green.hydro.closest.py
    M src/raster/r.green/r.green.hydro/r.green.hydro.delplants/r.green.hydro.delplants.py
    M src/raster/r.green/r.green.hydro/r.green.hydro.discharge/r.green.hydro.discharge.py
    M src/raster/r.green/r.green.hydro/r.green.hydro.financial/r.green.hydro.financial.py
    M src/raster/r.green/r.green.hydro/r.green.hydro.optimal/r.green.hydro.optimal.py
    M src/raster/r.green/r.green.hydro/r.green.hydro.planning/r.green.hydro.planning.py
    M src/raster/r.green/r.green.hydro/r.green.hydro.recommended/r.green.hydro.recommended.py
    M src/raster/r.green/r.green.hydro/r.green.hydro.structure/r.green.hydro.structure.py
    M src/raster/r.green/r.green.hydro/r.green.hydro.technical/r.green.hydro.technical.py
    M src/raster/r.green/r.green.hydro/r.green.hydro.theoretical/r.green.hydro.theoretical.py
    M src/raster/r.green/r.green.install/r.green.install.py
    M src/raster/r.gsflow.hydrodem/r.gsflow.hydrodem.py
    M src/raster/r.hazard.flood/r.hazard.flood.py
    M src/raster/r.hypso/r.hypso.py
    M src/raster/r.in.nasadem/r.in.nasadem.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.srtm.region/r.in.srtm.region.py
    M src/raster/r.in.usgs/r.in.usgs.py
    M src/raster/r.in.wcs/r.in.wcs.py
    M src/raster/r.lake.series/r.lake.series.py
    M src/raster/r.landscape.evol.old/r.landscape.evol.old.py
    M src/raster/r.landscape.evol/r.landscape.evol.py
    M src/raster/r.learn.ml/r.learn.ml.py
    M src/raster/r.learn.ml2/r.learn.predict/r.learn.predict.py
    M src/raster/r.learn.ml2/r.learn.train/r.learn.train.py
    M src/raster/r.local.relief/r.local.relief.py
    M src/raster/r.mapcalc.tiled/r.mapcalc.tiled.py
    M src/raster/r.maxent.lambdas/r.maxent.lambdas.py
    M src/raster/r.mblend/r.mblend.py
    M src/raster/r.mcda.ahp/r.mcda.ahp.py
    M src/raster/r.mcda.input/r.mcda.input.py
    M src/raster/r.mcda.output/r.mcda.output.py
    M src/raster/r.mcda.roughset/r.mcda.roughset.py
    M src/raster/r.mcda.topsis/r.mcda.topsis.py
    M src/raster/r.meb/r.meb.py
    M src/raster/r.mess/r.mess.py
    M src/raster/r.mregression.series/r.mregression.series.py
    M src/raster/r.mwprecip/r.mwprecip.py
    M src/raster/r.niche.similarity/r.niche.similarity.py
    M src/raster/r.northerness.easterness/r.northerness.easterness.py
    M src/raster/r.null.all/r.null.all.py
    M src/raster/r.object.activelearning/r.object.activelearning.py
    M src/raster/r.object.spatialautocor/r.object.spatialautocor.py
    M src/raster/r.object.thickness/r.object.thickness.py
    M src/raster/r.out.kde/r.out.kde.py
    M src/raster/r.out.legend/r.out.legend.py
    M src/raster/r.out.maxent_swd/r.out.maxent_swd.py
    M src/raster/r.out.ntv2/r.out.ntv2.py
    M src/raster/r.patch.smooth/r.patch.smooth.py
    M src/raster/r.popgrowth/r.popgrowth.py
    M src/raster/r.random.weight/r.random.weight.py
    M src/raster/r.recode.attr/r.recode.attr.py
    M src/raster/r.richdem.breachdepressions/r.richdem.breachdepressions.py
    M src/raster/r.richdem.filldepressions/r.richdem.filldepressions.py
    M src/raster/r.richdem.flowaccumulation/r.richdem.flowaccumulation.py
    M src/raster/r.richdem.resolveflats/r.richdem.resolveflats.py
    M src/raster/r.richdem.terrainattribute/r.richdem.terrainattribute.py
    M src/raster/r.rock.stability/r.rock.stability.py
    M src/raster/r.roughness.vector/r.roughness.vector.py
    M src/raster/r.sample.category/r.sample.category.py
    M src/raster/r.series.decompose/r.series.decompose.py
    M src/raster/r.series.diversity/r.series.diversity.py
    M src/raster/r.series.filter/r.series.filter.py
    M src/raster/r.shaded.pca/r.shaded.pca.py
    M src/raster/r.shalstab/r.shalstab.py
    M src/raster/r.sim.terrain/r.sim.terrain.py
    M src/raster/r.skyview/r.skyview.py
    M src/raster/r.slope.direction/r.slope.direction.py
    M src/raster/r.soillossbare/r.soillossbare.py
    M src/raster/r.stream.variables/r.stream.variables.sh
    M src/raster/r.stream.watersheds/r.stream.watersheds.sh
    M src/raster/r.subdayprecip.design/r.subdayprecip.design.py
    M src/raster/r.suitability.regions/r.suitability.regions.py
    M src/raster/r.sun.daily/r.sun.daily.py
    M src/raster/r.sun.hourly/r.sun.hourly.py
    M src/raster/r.surf.nnbathy/r.surf.nnbathy.py
    M src/raster/r.terrain.texture/r.terrain.texture.py
    M src/raster/r.texture.tiled/r.texture.tiled.py
    M src/raster/r.threshold/r.threshold.py
    M src/raster/r.to.vect.lines/r.to.vect.lines.py
    M src/raster/r.to.vect.tiled/r.to.vect.tiled.py
    M src/raster/r.tpi/r.tpi.py
    M src/raster/r.tri/r.tri.py
    M src/raster/r.valley.bottom/r.valley.bottom.py
    M src/raster/r.vect.stats/r.vect.stats.py
    M src/raster/r.vector.ruggedness/r.vector.ruggedness.py
    M src/raster/r.viewshed.cva/r.viewshed.cva.py
    M src/raster/r.vif/r.vif.py
    M src/raster/r.width.funct/r.width.funct.py
    M src/raster/r.zonal.classes/r.zonal.classes.py
    M src/raster3d/r3.count.categories/r3.count.categories.py
    M src/raster3d/r3.forestfrag/r3.forestfrag.py
    M src/raster3d/r3.to.group/r3.to.group.py
    M src/temporal/t.rast.kappa/t.rast.kappa.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.patch/t.rast.patch.py
    M src/temporal/t.rast.what.aggr/t.rast.what.aggr.py
    M src/temporal/t.rast.whatcsv/t.rast.whatcsv.py
    M src/vector/v.area.weigh/v.area.weigh.py
    M src/vector/v.build.pg/v.build.pg.py
    M src/vector/v.centerline/v.centerline.py
    M src/vector/v.civil/v.civil.py
    M src/vector/v.class.ml/v.class.ml.py
    M src/vector/v.class.mlR/v.class.mlR.py
    M src/vector/v.class.mlpy/v.class.mlpy.py
    M src/vector/v.clean.ogr/v.clean.ogr.py
    M src/vector/v.colors2/v.colors2.py
    M src/vector/v.concave.hull/v.concave.hull.py
    M src/vector/v.convert.all/v.convert.all.py
    M src/vector/v.db.pyupdate/v.db.pyupdate.py
    M src/vector/v.explode/v.explode.py
    M src/vector/v.external.all/v.external.all.py
    M src/vector/v.faultdirections/v.faultdirections.py
    M src/vector/v.fixed.segmentpoints/v.fixed.segmentpoints.py
    M src/vector/v.flexure/v.flexure.py
    M src/vector/v.gsflow.export/v.gsflow.export.py
    M src/vector/v.gsflow.gravres/v.gsflow.gravres.py
    M src/vector/v.gsflow.grid/v.gsflow.grid.py
    M src/vector/v.gsflow.hruparams/v.gsflow.hruparams.py
    M src/vector/v.gsflow.mapdata/v.gsflow.mapdata.py
    M src/vector/v.gsflow.reaches/v.gsflow.reaches.py
    M src/vector/v.gsflow.segments/v.gsflow.segments.py
    M src/vector/v.habitat.dem/v.habitat.dem.py
    M src/vector/v.in.csv/v.in.csv.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.gns/v.in.gns.py
    M src/vector/v.in.gps/v.in.gps.py
    M src/vector/v.in.gps/v.in.gpsbabel
    M src/vector/v.in.natura2000/v.in.natura2000.py
    M src/vector/v.in.ogc/v.in.ogc.features/v.in.ogc.features.py
    M src/vector/v.in.osm/v.in.osm.py
    M src/vector/v.in.pygbif/v.in.pygbif.py
    M src/vector/v.in.redlist/v.in.redlist.py
    M src/vector/v.in.survey/v.in.survey.py
    M src/vector/v.in.wfs2/v.in.wfs2.py
    M src/vector/v.isochrones/v.isochrones.py
    M src/vector/v.krige/v.krige.py
    M src/vector/v.lidar.mcc/v.lidar.mcc.py
    M src/vector/v.link.precip/v.link.precip.py
    M src/vector/v.mapcalc/v.mapcalc.py
    M src/vector/v.maxent.swd/v.maxent.swd.py
    M src/vector/v.median/v.median.py
    M src/vector/v.mrmr/v.mrmr.py
    M src/vector/v.neighborhoodmatrix/v.neighborhoodmatrix.py
    M src/vector/v.net.curvedarcs/v.net.curvedarcs.py
    M src/vector/v.out.gps/v.out.gps.py
    M src/vector/v.out.png/v.out.png.py
    M src/vector/v.ply.rectify/v.ply.rectify.py
    M src/vector/v.profile.points/v.profile.points.py
    M src/vector/v.rast.bufferstats/v.rast.bufferstats.py
    M src/vector/v.sort.points/v.sort.points.py
    M src/vector/v.stats/v.stats.py
    M src/vector/v.strds.stats/v.strds.stats.py
    M src/vector/v.stream.inbasin/v.stream.inbasin.py
    M src/vector/v.stream.network/v.stream.network.py
    M src/vector/v.stream.order/v.stream.order.py
    M src/vector/v.stream.profiler/v.stream.profiler.py
    M src/vector/v.surf.icw/v.surf.icw.py
    M src/vector/v.surf.nnbathy/v.surf.nnbathy.py
    M src/vector/v.tin.to.rast/v.tin.to.rast.py
    M src/vector/v.transects/v.transects.py
    M src/vector/v.vect.stats.multi/v.vect.stats.multi.py
    M src/vector/v.what.rast.multi/v.what.rast.multi.py
    M src/vector/v.what.spoly/v.what.spoly.py
    M src/vector/v.what.strds.timestamp/v.what.strds.timestamp.py
    M utils/module_key_list.sh

  Log Message:
  -----------
  parser: Use #-space-% to allow writing PEP8-compliant Python code (#693)

* parser: Use #-space-% to allow writing PEP8-compliant Python code

Change `#%` in parser script header definition to `# %`  because `#%` is against PEP8 (each line of a block comment starts with a `#` and a single space).

This PR follows the changes in https://github.com/OSGeo/grass/pull/1287




More information about the grass-commit mailing list