[GRASS-git] [OSGeo/grass] e17109: Update to Black 22.1.0 (#2212)

Vaclav Petras noreply at github.com
Wed Feb 16 12:17:58 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: e171096c1288b08f6743189bd15fc9266cb75df4
      https://github.com/OSGeo/grass/commit/e171096c1288b08f6743189bd15fc9266cb75df4
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2022-02-16 (Wed, 16 Feb 2022)

  Changed paths:
    M .github/workflows/black.yml
    M gui/wxpython/dbmgr/vinfo.py
    M gui/wxpython/gcp/manager.py
    M gui/wxpython/gui_core/wrap.py
    M gui/wxpython/image2target/ii2t_manager.py
    M gui/wxpython/lmgr/layertree.py
    M gui/wxpython/photo2image/ip2i_manager.py
    M pyproject.toml
    M python/grass/gunittest/checkers.py
    M python/grass/imaging/images2gif.py
    M python/grass/imaging/images2swf.py
    M python/grass/script/raster.py
    M python/grass/script/raster3d.py
    M python/grass/script/utils.py

  Log Message:
  -----------
  Update to Black 22.1.0 (#2212)

Black is no longer a beta and has a (more strict) stability policy in place.
Changes are expected to happen over years and with updating Python versions (removing the old ones to be exact).

The changes in formatting are specialized no-spaces style for simple operands of power operator and better formatting of a complex if statement.

Python 3.10 is now among target versions. File which had to be ignored by Black due to a, now fixed, bug in Black is not ignored anymore.

In CI, matrix is used to define variables for versions (as in Pylint workflow and workflows with actual matrix). Workflow's on now specifies branches and tags for push.




More information about the grass-commit mailing list