[GRASS-git] [OSGeo/grass-addons] 25b0a9: Update to Black 22.3.0 (#723)
Vaclav Petras
noreply at github.com
Wed Mar 30 07:17:48 PDT 2022
Branch: refs/heads/grass8
Home: https://github.com/OSGeo/grass-addons
Commit: 25b0a9981b66c443a1c1af1d5f26182c93268b45
https://github.com/OSGeo/grass-addons/commit/25b0a9981b66c443a1c1af1d5f26182c93268b45
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2022-03-30 (Wed, 30 Mar 2022)
Changed paths:
M .github/workflows/black.yml
M pyproject.toml
M src/display/d.vect.thematic2/d.vect.thematic2.py
M src/general/g.rename.many/g.rename.many.py
M src/gui/wxpython/newgui/api_test.py
M src/gui/wxpython/wx.mwprecip/mw3.py
M src/gui/wxpython/wx.rdigit/frame.py
M src/gui/wxpython/wx.rdigit/rdigit/dialogs_core.py
M src/gui/wxpython/wx.rdigit/rdigit/mapwindow.py
M src/gui/wxpython/wx.stream/gui_modules/rstream.py
M src/imagery/i.ann.maskrcnn/maskrcnnlib/model.py
M src/imagery/i.cutlines/i.cutlines.py
M src/imagery/i.gabor/i.gabor.py
M src/imagery/i.landsat8.swlst/randomness.py
M src/imagery/i.landsat8.swlst/split_window_lst.py
M src/imagery/i.nightlights.intercalibration/intercalibration_models.py
M src/imagery/i.nightlights.intercalibration/test_intercalibration_models.py
M src/imagery/i.pysptools.unmix/i.pysptools.unmix.py
M src/imagery/i.segment.hierarchical/i.segment.hierarchical.py
M src/imagery/i.segment.uspo/i.segment.uspo.py
M src/raster/r.basin/r.basin.py
M src/raster/r.connectivity/r.connectivity.distance/r.connectivity.distance.py
M src/raster/r.estimap.recreation/estimap_recreation/main.py
M src/raster/r.futures/r.futures.calib/testsuite/test_r_futures_calib.py
M src/raster/r.green/r.green.gshp/libgshp/ashrae.py
M src/raster/r.green/r.green.gshp/libgshp/gpot.py
M src/raster/r.green/r.green.hydro/libhydro/plant.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.technical/r.green.hydro.technical.py
M src/raster/r.hazard.flood/r.hazard.flood.py
M src/raster/r.hypso/r.hypso.py
M src/raster/r.in.pdal/r.in.pdal.py
M src/raster/r.in.usgs/r.in.usgs.py
M src/raster/r.lake.series/r.lake.series.py
M src/raster/r.mapcalc.tiled/r.mapcalc.tiled.py
M src/raster/r.mwprecip/r.mwprecip.py
M src/raster/r.object.spatialautocor/r.object.spatialautocor.py
M src/raster/r.shaded.pca/r.shaded.pca.py
M src/raster/r.skyview/r.skyview.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.texture.tiled/r.texture.tiled.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.viewshed.exposure/r.viewshed.exposure.py
M src/raster/r.width.funct/r.width.funct.py
M src/vector/v.build.pg/v.build.pg.py
M src/vector/v.civil/road_base.py
M src/vector/v.civil/road_crosstools.py
M src/vector/v.civil/road_displ.py
M src/vector/v.civil/road_tables.py
M src/vector/v.class.ml/features.py
M src/vector/v.class.ml/ml_functions.py
M src/vector/v.class.ml/npy2table.py
M src/vector/v.class.ml/v.class.ml.py
M src/vector/v.clean.ogr/v.clean.ogr.py
M src/vector/v.krige/v.krige.py
M src/vector/v.stream.inbasin/v.stream.inbasin.py
M src/vector/v.stream.profiler/v.stream.profiler.py
M src/vector/v.transects/v.transects.py
Log Message:
-----------
Update to Black 22.3.0 (#723)
- A new version of Click broke Black. The new version of Black fixes the issue.
- New stable version of Black (22.1, 22.3) changes some of the code formatting.
- Targeting Python >=3.7 adds trailing comma after `**kwargs`.
- Strings prefixed by u are replaced by plain strings which are Unicode in Python 3.
- Changes applied to all files.
- Python 2 files are now ignored (to be fixed or removed in the future).
- CI workflow synced to core repo.
- See also https://github.com/OSGeo/grass/pull/2212 for the update to stable Black in core repo.
- See also https://github.com/OSGeo/grass/pull/2286 for the Click-related update.
More information about the grass-commit
mailing list