[GRASS-git] [OSGeo/grass] f9ed0a: pythonlib: Remove star imports (#1546)

Vaclav Petras noreply at github.com
Mon May 10 19:43:05 PDT 2021

  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: f9ed0ac2bfeefb1b13f0d5b72a07a99cb064ab38
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2021-05-10 (Mon, 10 May 2021)

  Changed paths:
    M python/grass/.flake8
    M python/grass/pygrass/rpc/__init__.py
    M python/grass/script/db.py
    M python/grass/script/raster.py
    M python/grass/script/raster3d.py
    M python/grass/script/task.py
    M python/grass/script/vector.py
    M python/grass/temporal/c_libraries_interface.py
    M python/grass/temporal/core.py
    M python/grass/temporal/temporal_granularity.py
    M python/grass/temporal/unit_tests.py

  Log Message:
  pythonlib: Remove star imports (#1546)

Replaces star import (from x import *) by regular imports (from x import y).

Enables the relevant Flake8 warnings.

Adds the warning to per-file ignores for init files where we expect and allow
using star imports (unfortunately some init files contain actual code suffers
from these warning being disabled, but that's a different issue).

More information about the grass-commit mailing list