[GRASS-git] [OSGeo/grass] f99780: style: Fix collapsible-else-if (PLR5501) (#4045)
Edouard Choinière
noreply at github.com
Wed Jul 17 09:06:57 PDT 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: f99780c11f8d4d1633e469fb32da2b6c75852b4f
https://github.com/OSGeo/grass/commit/f99780c11f8d4d1633e469fb32da2b6c75852b4f
Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
Date: 2024-07-17 (Wed, 17 Jul 2024)
Changed paths:
M gui/wxpython/animation/anim.py
M gui/wxpython/animation/controller.py
M gui/wxpython/animation/dialogs.py
M gui/wxpython/animation/frame.py
M gui/wxpython/animation/nviztask.py
M gui/wxpython/animation/temporal_manager.py
M gui/wxpython/core/globalvar.py
M gui/wxpython/core/render.py
M gui/wxpython/core/settings.py
M gui/wxpython/core/toolboxes.py
M gui/wxpython/core/treemodel.py
M gui/wxpython/core/units.py
M gui/wxpython/datacatalog/tree.py
M gui/wxpython/dbmgr/base.py
M gui/wxpython/dbmgr/dialogs.py
M gui/wxpython/dbmgr/vinfo.py
M gui/wxpython/gcp/manager.py
M gui/wxpython/gmodeler/model.py
M gui/wxpython/gui_core/dialogs.py
M gui/wxpython/gui_core/forms.py
M gui/wxpython/gui_core/goutput.py
M gui/wxpython/gui_core/gselect.py
M gui/wxpython/gui_core/mapdisp.py
M gui/wxpython/gui_core/pyedit.py
M gui/wxpython/gui_core/pystc.py
M gui/wxpython/gui_core/toolbars.py
M gui/wxpython/gui_core/wrap.py
M gui/wxpython/history/tree.py
M gui/wxpython/iclass/digit.py
M gui/wxpython/iclass/frame.py
M gui/wxpython/icons/icon.py
M gui/wxpython/image2target/ii2t_manager.py
M gui/wxpython/lmgr/layertree.py
M gui/wxpython/location_wizard/wizard.py
M gui/wxpython/mapdisp/statusbar.py
M gui/wxpython/mapswipe/frame.py
M gui/wxpython/mapwin/decorations.py
M gui/wxpython/modules/colorrules.py
M gui/wxpython/modules/extensions.py
M gui/wxpython/nviz/mapwindow.py
M gui/wxpython/nviz/tools.py
M gui/wxpython/photo2image/ip2i_manager.py
M gui/wxpython/psmap/dialogs.py
M gui/wxpython/psmap/frame.py
M gui/wxpython/psmap/instructions.py
M gui/wxpython/rdigit/g.gui.rdigit.py
M gui/wxpython/startup/guiutils.py
M gui/wxpython/tplot/frame.py
M gui/wxpython/vdigit/mapwindow.py
M gui/wxpython/vdigit/preferences.py
M gui/wxpython/vdigit/toolbars.py
M gui/wxpython/vdigit/wxdisplay.py
M gui/wxpython/vnet/dialogs.py
M gui/wxpython/vnet/vnet_data.py
M gui/wxpython/wxplot/dialogs.py
M gui/wxpython/wxplot/histogram.py
M lib/init/grass.py
M man/parser_standard_options.py
M pyproject.toml
M python/grass/gunittest/checkers.py
M python/grass/gunittest/invoker.py
M python/grass/jupyter/baseseriesmap.py
M python/grass/jupyter/region.py
M python/grass/pygrass/utils.py
M python/grass/pygrass/vector/geometry.py
M python/grass/script/core.py
M python/grass/script/task.py
M python/grass/semantic_label/reader.py
M python/grass/temporal/abstract_map_dataset.py
M python/grass/temporal/abstract_space_time_dataset.py
M python/grass/temporal/base.py
M python/grass/temporal/core.py
M python/grass/temporal/datetime_math.py
M python/grass/temporal/list_stds.py
M python/grass/temporal/temporal_algebra.py
M python/grass/temporal/temporal_granularity.py
M python/grass/temporal/temporal_raster_base_algebra.py
M scripts/d.frame/d.frame.py
M scripts/g.extension/g.extension.py
M scripts/m.proj/m.proj.py
M scripts/r.semantic.label/r.semantic.label.py
M scripts/v.db.reconnect.all/v.db.reconnect.all.py
M scripts/v.in.lines/v.in.lines.py
M scripts/v.report/v.report.py
M temporal/t.rast.accdetect/t.rast.accdetect.py
M temporal/t.rast.aggregate/t.rast.aggregate.py
M temporal/t.rast.gapfill/t.rast.gapfill.py
M temporal/t.vect.db.select/t.vect.db.select.py
M utils/gitlog2changelog.py
M utils/mkhtml.py
Log Message:
-----------
style: Fix collapsible-else-if (PLR5501) (#4045)
* style: Fix collapsible-else-if (PLR5501)
Ruff rule: https://docs.astral.sh/ruff/rules/collapsible-else-if/
* style: Fix collapsible-else-if (PLR5501)
Ruff rule: https://docs.astral.sh/ruff/rules/collapsible-else-if/
* style: Fix collapsible-else-if (PLR5501)
Ruff rule: https://docs.astral.sh/ruff/rules/collapsible-else-if/
* Apply suggestions from code review
Co-authored-by: Stefan Blumentrath <stefan.blumentrath at gmx.de>
* style: Combine if conditions in wxpython/gmodeler/model.py
* style: Simplify if conditions in wxpython/gui_core
---------
Co-authored-by: Stefan Blumentrath <stefan.blumentrath at gmx.de>
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list