[GRASS-git] [OSGeo/grass] dd8785: python: Various remaining pyrefact refactorings (#...

Edouard Choinière noreply at github.com
Sat Jan 4 15:32:04 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: dd8785695b5b4469e8ea5d4d02791dba7b40ec5b
      https://github.com/OSGeo/grass/commit/dd8785695b5b4469e8ea5d4d02791dba7b40ec5b
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2025-01-04 (Sat, 04 Jan 2025)

  Changed paths:
    M pyproject.toml
    M python/grass/gunittest/case.py
    M python/grass/gunittest/runner.py
    M python/grass/imaging/images2gif.py
    M python/grass/jupyter/setup.py
    M python/grass/pygrass/modules/grid/grid.py
    M python/grass/pygrass/utils.py
    M python/grass/pygrass/vector/table.py
    M python/grass/script/tests/grass_script_setup_test.py
    M python/grass/temporal/mapcalc.py
    M python/grass/temporal/spatial_topology_dataset_connector.py
    M python/grass/temporal/temporal_vector_algebra.py

  Log Message:
  -----------
  python: Various remaining pyrefact refactorings (#4911)

* python: Factor out lines executed in both branches

* style: Use parentheses when assigning tuples

* style: Add parenthesis for clarity

* python: Rewrite negation

* style: Extract constant from loop

* style: Membership test using a set

* style: Factor out commonly used strings into constants

* checks: Remove fixed Ruff exclusions



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