[GRASS-git] [OSGeo/grass] 59f160: CQ: Fix PTH102/PTH103: Replace `os.mkdir()` and `o...
Edouard Choinière
noreply at github.com
Tue Nov 11 12:17:25 PST 2025
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 59f1608a354cb5e6c1a7a5cc477633b8632d1774
https://github.com/OSGeo/grass/commit/59f1608a354cb5e6c1a7a5cc477633b8632d1774
Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
Date: 2025-11-11 (Tue, 11 Nov 2025)
Changed paths:
M gui/wxpython/animation/provider.py
M gui/wxpython/core/settings.py
M gui/wxpython/core/toolboxes.py
M gui/wxpython/core/watchdog.py
M gui/wxpython/gcp/manager.py
M gui/wxpython/image2target/ii2t_gis_set.py
M gui/wxpython/location_wizard/wizard.py
M gui/wxpython/rlisetup/functions.py
M imagery/i.rectify/testsuite/test_i_rectify.py
M imagery/i.signatures/testsuite/test_i_signatures.py
M lib/imagery/testsuite/test_imagery_find.py
M lib/imagery/testsuite/test_imagery_signature_management.py
M lib/init/grass.py
M man/build.py
M man/build_rest.py
M pyproject.toml
M python/grass/app/data.py
M python/grass/grassdb/create.py
M python/grass/gunittest/invoker.py
M python/grass/gunittest/utils.py
M python/grass/pygrass/modules/grid/grid.py
M python/grass/pygrass/vector/table.py
M python/grass/script/core.py
M python/grass/temporal/core.py
M python/grass/utils/download.py
M raster/r.terraflow/testsuite/test_r_terraflow.py
M scripts/g.extension/g.extension.py
M scripts/r.in.srtm/r.in.srtm.py
M scripts/r.unpack/r.unpack.py
M scripts/v.db.reconnect.all/v.db.reconnect.all.py
M scripts/v.in.e00/v.in.e00.py
M scripts/v.unpack/v.unpack.py
M utils/thumbnails.py
Log Message:
-----------
CQ: Fix PTH102/PTH103: Replace `os.mkdir()` and `os.makedirs()` with pathlib (#6604)
CQ: Fix Ruff PTH102 and PTH103: Replace `os.mkdir()` and `os.makedirs()` with pathlib
PTH102 `os.mkdir()` should be replaced by `Path.mkdir()`
PTH103 `os.makedirs()` should be replaced by `Path.mkdir(parents=True)`
Ruff rules: https://docs.astral.sh/ruff/rules/os-mkdir/
https://docs.astral.sh/ruff/rules/os-makedirs/
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