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

Edouard Choinière noreply at github.com
Sun Jun 30 17:17:51 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 386d47844126ddf1a34b1b4a389d87e471224f5c
      https://github.com/OSGeo/grass/commit/386d47844126ddf1a34b1b4a389d87e471224f5c
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-06-30 (Sun, 30 Jun 2024)

  Changed paths:
    M gui/wxpython/core/menutree.py
    M gui/wxpython/datacatalog/tree.py
    M gui/wxpython/dbmgr/base.py
    M gui/wxpython/gui_core/prompt.py
    M gui/wxpython/history/tree.py
    M gui/wxpython/lmgr/pyshell.py
    M gui/wxpython/mapdisp/frame.py
    M gui/wxpython/modules/mcalc_builder.py
    M gui/wxpython/nviz/tools.py
    M gui/wxpython/psmap/frame.py
    M gui/wxpython/psmap/instructions.py
    M gui/wxpython/timeline/frame.py
    M gui/wxpython/tplot/frame.py
    M python/grass/benchmark/results.py
    M python/grass/gunittest/case.py
    M python/grass/gunittest/invoker.py
    M python/grass/script/vector.py
    M python/libgrass_interface_generator/ctypesgen/libraryloader.py
    M scripts/g.manual/g.manual.py
    M scripts/r.import/r.import.py
    M scripts/r.out.xyz/r.out.xyz.py
    M scripts/v.in.e00/v.in.e00.py
    M utils/g.html2man/ggroff.py

  Log Message:
  -----------
  style: Fixes unnecessary-collection-call (C408) for remaining code (#3948)

* style: Fixes unnecessary-collection-call (C408) for remaining code

Only applies fixes to non-empty collections by  `ruff check --select "C408" --unsafe-fixes --output-format=concise --fix` in order to limit the review scope.

* style: Apply black formatting

Separated in another commit for easier review of only the original changes without formatting

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

Only applies fixes to non-empty collections by  `ruff check --select "C408" --unsafe-fixes --output-format=concise --fix` in order to limit the review scope.

* style: Fixes unnecessary-collection-call (C408) for gui/wxpython/psmap/instructions

* style: Adjust comment in gui/wxpython/psmap/instructions

* style: Remove comment in gui/wxpython/psmap/instructions



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