[GRASS-git] [OSGeo/grass] 544e6d: style: Fix FURB188: Prefer `removeprefix` over con...

Edouard Choinière noreply at github.com
Sun Sep 15 12:23:03 PDT 2024


  Branch: refs/heads/renovate/ruff
  Home:   https://github.com/OSGeo/grass
  Commit: 544e6dedf0e6235e288ac687652d84de38137a14
      https://github.com/OSGeo/grass/commit/544e6dedf0e6235e288ac687652d84de38137a14
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-09-15 (Sun, 15 Sep 2024)

  Changed paths:
    M man/parser_standard_options.py
    M python/grass/gunittest/reporters.py
    M utils/generate_release_notes.py

  Log Message:
  -----------
  style: Fix FURB188: Prefer `removeprefix` over conditionally replacing with slice.

Ruff rule: https://docs.astral.sh/ruff/rules/slice-to-remove-prefix-or-suffix/

This is a new rule introduced in ruff 0.6.5



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