[GRASS-git] [OSGeo/grass-addons] 3e6dc4: Enable Python SyntaxError checks, move to Python 3...
Vaclav Petras
noreply at github.com
Thu Oct 6 19:54:26 PDT 2022
Branch: refs/heads/grass8
Home: https://github.com/OSGeo/grass-addons
Commit: 3e6dc4c0a71ba944cd19ee7f1d1e0a54ab46311b
https://github.com/OSGeo/grass-addons/commit/3e6dc4c0a71ba944cd19ee7f1d1e0a54ab46311b
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2022-10-06 (Thu, 06 Oct 2022)
Changed paths:
M .flake8
M pyproject.toml
R src/gui/wxpython/newgui/api_test.py
R src/gui/wxpython/newgui/frame.py
R src/gui/wxpython/newgui/gui_mapwindow.py
R src/gui/wxpython/newgui/mapwindow.py
R src/gui/wxpython/newgui/render2.py
R src/gui/wxpython/newgui/wxgui.py
M src/gui/wxpython/wx.rdigit/rdigit/main.py
M src/gui/wxpython/wx.stream/gui_modules/ImageViewer.py
M src/gui/wxpython/wx.stream/gui_modules/rstream_panelOne.py
M src/gui/wxpython/wx.wms/LoadConfig.py
M src/gui/wxpython/wx.wms/addserver.py
M src/gui/wxpython/wx.wms/parse.py
M src/gui/wxpython/wx.wms/wmsmenu.py
M src/hadoop/hd/dependency.py
M src/hadoop/hd/hd.esri2vector/hd.esri2vector.py
M src/hadoop/hd/hd.hdfs.out.vector/hd.hdfs.out.vector.py
M src/hadoop/hd/hd.hive.select/hd.hive.select.py
M src/hadoop/hd/hdfsgrass/hdfs_grass_lib.py
M src/hadoop/hd/hdfsgrass/hdfs_grass_util.py
M src/hadoop/hd/hdfswrapper/hdfs_hook.py
M src/hadoop/hd/hdfswrapper/hive_hook.py
M src/hadoop/hd/hdfswrapper/hive_table.py
M src/hadoop/hd/hdfswrapper/utils.py
M src/hadoop/hd/hdfswrapper/webhdfs_hook.py
M src/raster/r.agent/tests/test_grassland.py
Log Message:
-----------
Enable Python SyntaxError checks, move to Python 3 (#811)
* Enable Flake8 check for SyntaxError: invalid syntax.
* Fix syntax errors and move remaining code from Python 2 to Python 3.
* Remove experimental newgui (completely replaced by the single window project).
* Remove duplicate global ignore lines for Flake8 F811 (redefinition of unused).
* Replace global ignore of Flake8 W605 (invalid escape sequence) by per-file ignores.
* Define underscore as buildin as in core.
* Add per-file ignores for F823 for boxplot code due to use of _ as unused.
* Add exclude directories as in core.
* Remove prints which are clearly debug-only (instead of updating to Python 3).
* Fix typos in or close to modified code.
* Enable Black for individually disabled files which had Python 2 syntax
More information about the grass-commit
mailing list