[GRASS-git] [OSGeo/grass] 087501: pythonlib: Fix stylistic Flake8 warnings (#1486)

Vaclav Petras noreply at github.com
Tue Mar 30 18:08:49 PDT 2021


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: 08750123188367a0c60398e99849051dd93cf6cb
      https://github.com/OSGeo/grass/commit/08750123188367a0c60398e99849051dd93cf6cb
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2021-03-30 (Tue, 30 Mar 2021)

  Changed paths:
    M python/grass/.flake8
    M python/grass/gunittest/multirunner.py
    M python/grass/imaging/images2swf.py
    M python/grass/pygrass/modules/interface/module.py
    M python/grass/pygrass/raster/raster_type.py
    M python/grass/script/core.py
    M python/grass/temporal/temporal_algebra.py
    M python/grass/temporal/temporal_raster3d_algebra.py
    M python/grass/temporal/temporal_raster_algebra.py
    M python/grass/temporal/temporal_raster_base_algebra.py
    M python/grass/temporal/temporal_vector_algebra.py

  Log Message:
  -----------
  pythonlib: Fix stylistic Flake8 warnings (#1486)

* Removes lines with many hash marks. ## is considered bad style and the lines
  were mostly used just to separate classes which are separated by whitespace
  (which is enforced unlike the comment), can be found using search, etc.
* The Temporal functions headings removed as too generic label and most of the
  time starting close to the `__init__` function anyway.
* Removes empty line before a single return statement in related functions.
* Fixes typo dictionoary -> dictionary.
* Removes extra # from comments starting with ##.
* Reduces intermingling of code and comments in pygrass...module to simplify formatting.




More information about the grass-commit mailing list