[GRASS-git] [OSGeo/grass] 8728f4: style: Enable PLW1514 and fix issues in gunittest ...

Edouard Choinière noreply at github.com
Sun Aug 31 17:54:27 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 8728f47cb499a08e140f317d3e91c1919a68799f
      https://github.com/OSGeo/grass/commit/8728f47cb499a08e140f317d3e91c1919a68799f
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2025-08-31 (Sun, 31 Aug 2025)

  Changed paths:
    M pyproject.toml
    M python/grass/gunittest/invoker.py
    M python/grass/gunittest/main.py
    M python/grass/gunittest/multireport.py
    M python/grass/gunittest/reporters.py
    M python/grass/gunittest/utils.py

  Log Message:
  -----------
  style: Enable PLW1514 and fix issues in gunittest files (#6294)

* grass.gunittest: Specify encoding to files written in invoker.py

* grass.gunittest: Specify encoding to files written in utils.py

* grass.gunittest: Specify encoding to files written by GrassTestProgram

* grass.gunittest: Specify encoding to files written in reporters.py

* grass.gunittest: Specify encoding to files written in multireport.py

* grass.gunittest: Specify encoding to files written in invoker.py

* grass.gunittest: Specify encoding to files written in reporters.py

* checks: Enable checking for unspecified-encoding (PLW1514) with ruff

Ignores existing issues

Ruff rule: https://docs.astral.sh/ruff/rules/unspecified-encoding/

Pylint rule: https://pylint.readthedocs.io/en/latest/user_guide/messages/warning/unspecified-encoding.html



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