[GRASS-git] [OSGeo/grass] 1a96f6: contributing: Update to Black 23.1.0 (#2866)

Vaclav Petras noreply at github.com
Wed Mar 1 18:08:13 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 1a96f69ccf430caa03bec8dbfc990c07c81f3164
      https://github.com/OSGeo/grass/commit/1a96f69ccf430caa03bec8dbfc990c07c81f3164
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2023-03-01 (Wed, 01 Mar 2023)

  Changed paths:
    M .github/workflows/black.yml
    M .pre-commit-config.yaml
    M doc/gui/wxpython/example/frame.py
    M gui/wxpython/animation/nviztask.py
    M gui/wxpython/animation/provider.py
    M gui/wxpython/animation/temporal_manager.py
    M gui/wxpython/core/giface.py
    M gui/wxpython/core/menutree.py
    M gui/wxpython/core/render.py
    M gui/wxpython/core/utils.py
    M gui/wxpython/core/workspace.py
    M gui/wxpython/core/ws.py
    M gui/wxpython/datacatalog/dialogs.py
    M gui/wxpython/dbmgr/base.py
    M gui/wxpython/dbmgr/dialogs.py
    M gui/wxpython/dbmgr/sqlbuilder.py
    M gui/wxpython/gcp/manager.py
    M gui/wxpython/gmodeler/preferences.py
    M gui/wxpython/gui_core/dialogs.py
    M gui/wxpython/gui_core/forms.py
    M gui/wxpython/gui_core/gselect.py
    M gui/wxpython/gui_core/pystc.py
    M gui/wxpython/gui_core/widgets.py
    M gui/wxpython/iclass/frame.py
    M gui/wxpython/iclass/plots.py
    M gui/wxpython/iclass/statistics.py
    M gui/wxpython/iclass/toolbars.py
    M gui/wxpython/image2target/g.gui.image2target.py
    M gui/wxpython/image2target/ii2t_gis_set.py
    M gui/wxpython/image2target/ii2t_manager.py
    M gui/wxpython/iscatt/controllers.py
    M gui/wxpython/iscatt/core_c.py
    M gui/wxpython/iscatt/dialogs.py
    M gui/wxpython/iscatt/frame.py
    M gui/wxpython/iscatt/iscatt_core.py
    M gui/wxpython/iscatt/plots.py
    M gui/wxpython/iscatt/toolbars.py
    M gui/wxpython/lmgr/frame.py
    M gui/wxpython/lmgr/layertree.py
    M gui/wxpython/lmgr/workspace.py
    M gui/wxpython/location_wizard/dialogs.py
    M gui/wxpython/location_wizard/wizard.py
    M gui/wxpython/main_window/frame.py
    M gui/wxpython/mapdisp/main.py
    M gui/wxpython/mapswipe/dialogs.py
    M gui/wxpython/mapwin/base.py
    M gui/wxpython/modules/colorrules.py
    M gui/wxpython/modules/histogram.py
    M gui/wxpython/modules/import_export.py
    M gui/wxpython/modules/mcalc_builder.py
    M gui/wxpython/nviz/mapwindow.py
    M gui/wxpython/nviz/tools.py
    M gui/wxpython/photo2image/g.gui.photo2image.py
    M gui/wxpython/photo2image/ip2i_manager.py
    M gui/wxpython/psmap/dialogs.py
    M gui/wxpython/psmap/frame.py
    M gui/wxpython/psmap/instructions.py
    M gui/wxpython/vdigit/wxdigit.py
    M gui/wxpython/vnet/dialogs.py
    M gui/wxpython/vnet/toolbars.py
    M gui/wxpython/vnet/vnet_core.py
    M gui/wxpython/vnet/vnet_data.py
    M gui/wxpython/vnet/vnet_utils.py
    M gui/wxpython/vnet/widgets.py
    M gui/wxpython/web_services/cap_interface.py
    M gui/wxpython/web_services/dialogs.py
    M gui/wxpython/web_services/widgets.py
    M gui/wxpython/wxgui.py
    M gui/wxpython/wxplot/base.py
    M gui/wxpython/wxplot/dialogs.py
    M locale/grass_po_stats.py
    M python/grass/gunittest/case.py
    M python/grass/gunittest/main.py
    M python/grass/gunittest/multireport.py
    M python/grass/gunittest/reporters.py
    M python/grass/gunittest/testsuite/test_checkers.py
    M python/grass/imaging/images2gif.py
    M python/grass/imaging/images2ims.py
    M python/grass/imaging/images2swf.py
    M python/grass/jupyter/map.py
    M python/grass/pygrass/gis/region.py
    M python/grass/pygrass/modules/interface/testsuite/test_modules.py
    M python/grass/pygrass/raster/__init__.py
    M python/grass/pygrass/raster/abstract.py
    M python/grass/pygrass/raster/testsuite/test_category.py
    M python/grass/pygrass/raster/testsuite/test_history.py
    M python/grass/pygrass/raster/testsuite/test_numpy.py
    M python/grass/pygrass/raster/testsuite/test_pygrass_raster.py
    M python/grass/pygrass/raster/testsuite/test_raster_img.py
    M python/grass/pygrass/raster/testsuite/test_raster_region.py
    M python/grass/pygrass/rpc/__init__.py
    M python/grass/pygrass/utils.py
    M python/grass/pygrass/vector/__init__.py
    M python/grass/pygrass/vector/geometry.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_vector.py
    M python/grass/pygrass/vector/testsuite/test_vector3d.py
    M python/grass/temporal/abstract_map_dataset.py
    M python/grass/temporal/abstract_space_time_dataset.py
    M python/grass/temporal/core.py
    M python/grass/temporal/datetime_math.py
    M python/grass/temporal/list_stds.py
    M python/grass/temporal/mapcalc.py
    M python/grass/temporal/metadata.py
    M python/grass/temporal/sampling.py
    M python/grass/temporal/space_time_datasets.py
    M python/grass/temporal/spatial_extent.py
    M python/grass/temporal/spatio_temporal_relationships.py
    M python/grass/temporal/temporal_algebra.py
    M python/grass/temporal/temporal_extent.py
    M python/grass/temporal/temporal_raster3d_algebra.py
    M python/grass/temporal/temporal_raster_algebra.py
    M python/grass/temporal/temporal_raster_base_algebra.py
    M python/grass/temporal/unit_tests.py
    M raster/r.external/testsuite/test_r_external.py
    M raster/r.fill.stats/testsuite/test_r_fill_stats.py
    M raster/r.horizon/testsuite/test_r_horizon.py
    M raster/r.in.gdal/testsuite/test_r_in_gdal.py
    M raster/r.in.poly/testsuite/test_rinpoly.py
    M raster/r.mapcalc/testsuite/test_r3_mapcalc.py
    M raster/r.mapcalc/testsuite/test_r_mapcalc.py
    M raster/r.patch/testsuite/test_rpatch_artificial.py
    M raster/r.random.cells/testsuite/test_random_cells.py
    M raster/r.random/testsuite/testrandom.py
    M raster/r.series/testsuite/test_r_series.py
    M raster/r.slope.aspect/benchmark/benchmark_r_slope_aspect_memory.py
    M raster/r.slope.aspect/testsuite/test_r_slope_aspect.py
    M raster/r.stats.quantile/testsuite/test_r_stats_quantile.py
    M raster/r.terraflow/testsuite/test_r_terraflow.py
    M raster/r.viewshed/testsuite/test_r_viewshed.py
    M scripts/g.extension/g.extension.py
    M scripts/g.extension/testsuite/test_addons_modules.py
    M scripts/g.extension/testsuite/test_addons_toolboxes.py
    M scripts/g.search.modules/g.search.modules.py
    M scripts/i.pansharpen/i.pansharpen.py
    M scripts/r.import/r.import.py
    M scripts/r.import/testsuite/test_r_import.py
    M scripts/r.in.wms/r.in.wms.py
    M scripts/r.in.wms/wms_base.py
    M scripts/r.in.wms/wms_drv.py
    M scripts/r.pack/r.pack.py
    M scripts/r.unpack/r.unpack.py
    M scripts/v.clip/v.clip.py
    M scripts/v.import/testsuite/test_v_import.py
    M scripts/v.what.strds/v.what.strds.py
    M temporal/t.connect/testsuite/test_distr_tgis_db_raster.py
    M temporal/t.connect/testsuite/test_distr_tgis_db_raster3d.py
    M temporal/t.connect/testsuite/test_distr_tgis_db_vector.py
    M temporal/t.rast.accdetect/t.rast.accdetect.py
    M temporal/t.rast.accumulate/t.rast.accumulate.py
    M temporal/t.rast.export/testsuite/test_rast_export.py
    M temporal/t.rast.import/testsuite/test_temporal_rast_import.py
    M temporal/t.rast.series/t.rast.series.py
    M temporal/t.rast.univar/testsuite/test_t_rast_univar.py
    M temporal/t.rast.what/testsuite/test_what.py
    M temporal/t.rast3d.univar/testsuite/test_t_rast3d_univar.py
    M temporal/t.shift/testsuite/test_shift.py
    M temporal/t.support/t.support.py
    M temporal/t.vect.observe.strds/t.vect.observe.strds.py
    M temporal/t.vect.what.strds/t.vect.what.strds.py
    M utils/mkhtml.py
    M vector/v.in.ascii/testsuite/test_csv.py
    M vector/v.in.ogr/testsuite/test_v_in_ogr.py
    M vector/v.net/testsuite/test_v_net.py
    M vector/v.surf.rst/testsuite/test_vsurfrst.py
    M vector/v.to.3d/testsuite/test_vto3d.py

  Log Message:
  -----------
  contributing: Update to Black 23.1.0 (#2866)

This mostly removes empty lines after function definitions. It also removes some over-complicated syntax. It changes formatting of some multi-line statements.

This also updates version in the pre-commit hook and CI.

Removes Black version from the job name, otherwise required check includes the version and needs updates when the version updates.




More information about the grass-commit mailing list