OSGeo / grass-addons

GRASS GIS Addons Repository
https://grass.osgeo.org/grass-stable/manuals/addons/
GNU General Public License v2.0
98 stars 148 forks source link

style: Fix current flake8 errors #1133

Closed echoix closed 2 months ago

echoix commented 2 months ago

Two types of errors were remaining in the repo:

  1. The "SyntaxWarning: invalid escape sequence" that started to appear for Python 3.12, deprecated since Python 3.6 (190 occurrences).
    • I used ruff check . --select "W605" --fix and adapted the changes when reviewing
  2. No space around arithmetic operator ("E226 missing whitespace around arithmetic operator") (2 occurrences).