[GRASS-git] [OSGeo/grass] 674d2f: CQ: Fix Ruff PTH202 and PTH204: Use `Path.stat()` ...

Edouard Choinière noreply at github.com
Sun Oct 26 16:15:54 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 674d2f00579bda9c8fb6b02f660b78d2695c7047
      https://github.com/OSGeo/grass/commit/674d2f00579bda9c8fb6b02f660b78d2695c7047
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2025-10-26 (Sun, 26 Oct 2025)

  Changed paths:
    M gui/wxpython/animation/dialogs.py
    M gui/wxpython/core/toolboxes.py
    M gui/wxpython/gui_core/toolbars.py
    M gui/wxpython/icons/icon.py
    M gui/wxpython/mapdisp/main.py
    M gui/wxpython/mapwin/buffered.py
    M gui/wxpython/modules/colorrules.py
    M gui/wxpython/modules/histogram.py
    M pyproject.toml
    M python/grass/grassdb/checks.py
    M python/grass/gunittest/case.py
    M python/grass/gunittest/multireport.py
    M python/grass/gunittest/reporters.py
    M python/grass/temporal/stds_import.py
    M utils/mkdocs.py

  Log Message:
  -----------
  CQ: Fix Ruff PTH202 and PTH204: Use `Path.stat()` for `.st_mtime` and `.st_size` (#6557)

* CQ: Fix Ruff PTH204: `os.path.getmtime` should be replaced by `Path.stat().st_mtime`

Ruff rule: https://docs.astral.sh/ruff/rules/os-path-getmtime/

* CQ: Fix Ruff PTH202: `os.path.getsize` should be replaced by `Path.stat().st_size`

Ruff rule: https://docs.astral.sh/ruff/rules/os-path-getsize/



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