[GRASS-git] [OSGeo/grass] 769580: style: Fix read-whole-file (FURB101) and write-who...

Edouard Choinière noreply at github.com
Sat Jul 13 15:53:46 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 76958057df4013ce30f0d6d15b1699832e0aadab
      https://github.com/OSGeo/grass/commit/76958057df4013ce30f0d6d15b1699832e0aadab
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-07-13 (Sat, 13 Jul 2024)

  Changed paths:
    M display/d.text/test.py
    M gui/wxpython/core/render.py
    M gui/wxpython/core/toolboxes.py
    M gui/wxpython/gui_core/pyedit.py
    M man/build_manual_gallery.py
    M pyproject.toml
    M python/grass/benchmark/results.py
    M python/grass/grassdb/history.py
    M python/grass/gunittest/invoker.py
    M python/grass/gunittest/reporters.py
    M python/grass/gunittest/testsuite/test_assertions.py
    M python/grass/jupyter/baseseriesmap.py
    M python/grass/jupyter/interactivemap.py
    M python/grass/pygrass/raster/category.py
    M python/grass/pygrass/shell/show.py
    M raster/r.mfilter/benchmark/benchmark_r_mfilter_nprocs.py
    M raster/r.neighbors/testsuite/test_r_neighbors.py
    M scripts/g.extension/g.extension.py
    M scripts/g.extension/testsuite/test_addons_download.py
    M scripts/r.in.wms/wms_base.py
    M scripts/r.unpack/r.unpack.py
    M scripts/v.db.addcolumn/v.db.addcolumn.py
    M scripts/v.in.wfs/v.in.wfs.py
    M temporal/t.connect/testsuite/test_distr_tgis_db_raster.py
    M temporal/t.connect/testsuite/test_distr_tgis_db_raster3d.py
    M temporal/t.connect/testsuite/test_distr_tgis_db_vector.py
    M temporal/t.register/testsuite/test_t_register_raster_file.py
    M utils/g.html2man/g.html2man.py
    M utils/generate_release_notes.py
    M utils/mkhtml.py
    M utils/update_version.py

  Log Message:
  -----------
  style: Fix read-whole-file (FURB101) and write-whole-file (FURB103) (#4047)

* style: Fix read-whole-file (FURB101)

Ruff rule: https://docs.astral.sh/ruff/rules/read-whole-file/

* style: Extract repeated config_directory variable in generate_release_notes

* style: Fix write-whole-file (FURB103)

Ruff rule: https://docs.astral.sh/ruff/rules/write-whole-file/



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