[GRASS-git] [OSGeo/grass] 67a160: style: Fix if-else-block-instead-of-if-exp (SIM108...
Edouard Choinière
noreply at github.com
Mon Oct 21 14:07:39 PDT 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 67a160931aa01d29a896def827d5dd687e08bfd4
https://github.com/OSGeo/grass/commit/67a160931aa01d29a896def827d5dd687e08bfd4
Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
Date: 2024-10-21 (Mon, 21 Oct 2024)
Changed paths:
M python/grass/app/runtime.py
M python/grass/benchmark/app.py
M python/grass/benchmark/plots.py
M python/grass/exceptions/__init__.py
M python/grass/gunittest/case.py
M python/grass/gunittest/invoker.py
M python/grass/gunittest/multireport.py
M python/grass/gunittest/reporters.py
M python/grass/jupyter/map3d.py
M python/grass/pydispatch/signal.py
M python/grass/pygrass/modules/interface/parameter.py
M python/grass/pygrass/vector/__init__.py
M python/grass/pygrass/vector/geometry.py
M python/grass/pygrass/vector/table.py
M python/grass/script/core.py
M python/grass/script/raster.py
M python/grass/script/task.py
M python/grass/script/testsuite/data/script_using_temporary_region.py
M python/grass/script/utils.py
M python/grass/script/vector.py
M python/grass/temporal/abstract_map_dataset.py
M python/grass/temporal/abstract_space_time_dataset.py
M python/grass/temporal/c_libraries_interface.py
M python/grass/temporal/datetime_math.py
M python/grass/temporal/gui_support.py
M python/grass/temporal/list_stds.py
M python/grass/temporal/register.py
M python/grass/temporal/sampling.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 python/grass/temporal/univar_statistics.py
M scripts/d.rast.edit/d.rast.edit.py
M scripts/d.rast.leg/d.rast.leg.py
M scripts/db.droptable/db.droptable.py
M scripts/db.out.ogr/db.out.ogr.py
M scripts/db.univar/db.univar.py
M scripts/g.extension/g.extension.py
M scripts/g.manual/g.manual.py
M scripts/i.in.spotvgt/i.in.spotvgt.py
M scripts/i.oif/i.oif.py
M scripts/i.spectral/i.spectral.py
M scripts/m.proj/m.proj.py
M scripts/r.buffer.lowmem/r.buffer.lowmem.py
M scripts/r.in.aster/r.in.aster.py
M scripts/r.in.srtm/r.in.srtm.py
M scripts/r.in.wms/wms_cap_parsers.py
M scripts/r.in.wms/wms_drv.py
M scripts/r.out.xyz/r.out.xyz.py
M scripts/r.reclass.area/r.reclass.area.py
M scripts/r.unpack/r.unpack.py
M scripts/r3.in.xyz/r3.in.xyz.py
M scripts/v.build.all/v.build.all.py
M scripts/v.db.reconnect.all/v.db.reconnect.all.py
M scripts/v.dissolve/tests/conftest.py
M scripts/v.dissolve/tests/v_dissolve_aggregate_test.py
M scripts/v.dissolve/tests/v_dissolve_layers_test.py
M scripts/v.in.e00/v.in.e00.py
M scripts/v.in.lines/v.in.lines.py
M scripts/v.in.mapgen/v.in.mapgen.py
M scripts/v.pack/v.pack.py
M scripts/v.rast.stats/v.rast.stats.py
M scripts/v.report/v.report.py
M scripts/v.unpack/v.unpack.py
Log Message:
-----------
style: Fix if-else-block-instead-of-if-exp (SIM108) (part 2) (#4562)
* style: Fix if-else-block-instead-of-if-exp (SIM108) in scripts/
Ruff rule: https://docs.astral.sh/ruff/rules/if-else-block-instead-of-if-exp
* style: Fix if-else-block-instead-of-if-exp (SIM108) in python/
Ruff rule: https://docs.astral.sh/ruff/rules/if-else-block-instead-of-if-exp
* checks: Rename inner variable shadowing type to _type in python/grass/temporal/gui_support.py
* style: Manual fixes for if-else-block-instead-of-if-exp (SIM108) in python/
Ruff rule: https://docs.astral.sh/ruff/rules/if-else-block-instead-of-if-exp
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