[GRASS-git] [OSGeo/grass] e52316: style: Enable checking for E ruff rules from pycod...

Edouard Choinière noreply at github.com
Sun Oct 20 13:02:33 PDT 2024


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

  Changed paths:
    M gui/wxpython/psmap/dialogs.py
    M gui/wxpython/psmap/frame.py
    M pyproject.toml
    M python/grass/temporal/univar_statistics.py
    M raster/r.basins.fill/testsuite/testrbf.py
    M raster/r.in.ascii/testsuite/test_r_in_ascii.py
    M raster/r.proj/testsuite/test_rproj.py
    M raster/r.reclass/testsuite/test_r_reclass.py
    M raster/r.tile/testsuite/testrt.py
    M raster/r.what/testsuite/testrw.py
    M scripts/r.reclass.area/testsuite/testrra.py
    M vector/v.extract/testsuite/test_v_extract.py
    M vector/v.vect.stats/testsuite/test_vect_stats.py

  Log Message:
  -----------
  style: Enable checking for E ruff rules from pycodestyle, fixing simple issues (#4560)

* style: Fix missing-whitespace (E231)

* style: Fix mixed-spaces-and-tabs (E101)

Ruff rule: https://docs.astral.sh/ruff/rules/mixed-spaces-and-tabs/

* style: Enable checking for E ruff rules from pycodestyle

* style: Fix multiple-leading-hashes-for-block-comment (E266)

Ruff rule: https://docs.astral.sh/ruff/rules/multiple-leading-hashes-for-block-comment/

For gui/wxpython/psmap/frame.py, the commented code was present since it was moved from addons to the main repo 13 years ago. At the time, both pair of lines had the same indentation, before PEP8 only formatted the second lines.

File temporal/t.rast.what/t.rast.what.py is ignored for E265 and E266, as it is being addressed in #4550



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