[GRASS-git] [OSGeo/grass] e99f97: style: Fixes unnecessary-collection-call (C408) fo...

Edouard Choinière noreply at github.com
Sun Jun 30 23:12:16 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: e99f979b44d6e129cd988145ca3d19bd616fd341
      https://github.com/OSGeo/grass/commit/e99f979b44d6e129cd988145ca3d19bd616fd341
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-07-01 (Mon, 01 Jul 2024)

  Changed paths:
    M gui/wxpython/animation/frame.py
    M gui/wxpython/animation/provider.py
    M gui/wxpython/core/render.py
    M gui/wxpython/core/settings.py
    M gui/wxpython/core/units.py
    M gui/wxpython/core/utils.py
    M gui/wxpython/core/workspace.py
    M gui/wxpython/datacatalog/tree.py
    M gui/wxpython/dbmgr/base.py
    M gui/wxpython/dbmgr/dialogs.py
    M gui/wxpython/dbmgr/vinfo.py
    M gui/wxpython/gmodeler/canvas.py
    M gui/wxpython/gmodeler/dialogs.py
    M gui/wxpython/gmodeler/model.py
    M gui/wxpython/gmodeler/panels.py
    M gui/wxpython/gui_core/dialogs.py
    M gui/wxpython/gui_core/forms.py
    M gui/wxpython/gui_core/ghelp.py
    M gui/wxpython/gui_core/gselect.py
    M gui/wxpython/gui_core/menu.py
    M gui/wxpython/gui_core/preferences.py
    M gui/wxpython/gui_core/prompt.py
    M gui/wxpython/gui_core/toolbars.py
    M gui/wxpython/gui_core/vselect.py
    M gui/wxpython/gui_core/widgets.py
    M gui/wxpython/iclass/frame.py
    M gui/wxpython/icons/grass_icons.py
    M gui/wxpython/image2target/ii2t_gis_set.py
    M gui/wxpython/iscatt/dialogs.py
    M gui/wxpython/lmgr/frame.py
    M gui/wxpython/lmgr/layertree.py
    M gui/wxpython/lmgr/workspace.py
    M gui/wxpython/location_wizard/wizard.py
    M gui/wxpython/main_window/frame.py
    M gui/wxpython/mapdisp/frame.py
    M gui/wxpython/mapdisp/main.py
    M gui/wxpython/mapdisp/statusbar.py
    M gui/wxpython/mapwin/buffered.py
    M gui/wxpython/modules/colorrules.py
    M gui/wxpython/modules/extensions.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/nviz/workspace.py
    M gui/wxpython/psmap/dialogs.py
    M gui/wxpython/psmap/frame.py
    M gui/wxpython/psmap/instructions.py
    M gui/wxpython/tools/update_menudata.py
    M gui/wxpython/vdigit/mapwindow.py
    M gui/wxpython/vdigit/preferences.py
    M gui/wxpython/vdigit/wxdigit.py
    M gui/wxpython/vdigit/wxdisplay.py
    M gui/wxpython/wxplot/dialogs.py
    M python/grass/grassdb/checks.py
    M python/grass/grassdb/history.py
    M python/grass/pygrass/raster/category.py
    M python/grass/pygrass/vector/table.py
    M python/grass/script/core.py
    M python/grass/script/raster.py
    M python/grass/script/task.py
    M python/grass/script/testsuite/test_utils.py
    M python/grass/script/vector.py
    M python/grass/semantic_label/reader.py
    M scripts/g.extension.all/g.extension.all.py
    M scripts/g.extension/g.extension.py
    M scripts/r.fillnulls/r.fillnulls.py
    M utils/thumbnails.py

  Log Message:
  -----------
  style: Fixes unnecessary-collection-call (C408) for empty collections (#3945)

* style: Fixes unnecessary-collection-call (C408) for empty collections

Only applies fixes to empty collections by  `ruff check --select "C408" --unsafe-fixes --fix --config "lint.flake8-comprehensions.allow-dict-calls-with-keyword-arguments = true"` in order to limit the review scope.

* style: apply black

* Apply suggestions from code review

---------

Co-authored-by: Stefan Blumentrath <stefan.blumentrath at gmx.de>



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


More information about the grass-commit mailing list