OSGeo / grass

GRASS GIS - free and open-source geospatial processing engine
https://grass.osgeo.org
Other
828 stars 301 forks source link

style(temporal): Fixes literal-membership (PLR6201) #3953

Closed echoix closed 3 months ago

echoix commented 3 months ago

Concerns Pylint rule "use-set-for-membership / R6201"

Using ruff check --output-format=concise --select PLR6201 --preview --unsafe-fixes --fix 'temporal/' 'python/grass/temporal'.

Part of the effort to introduce Pylint 3.x for https://github.com/OSGeo/grass/issues/3921

Uses the fixes provided for ruff rule literal-membership (PLR6201) to fix part of Pylint's "use-set-for-membership / R6201".

The changes are limited to the temporal-related folders to limit the review scope.

echoix commented 3 months ago

If you are able to review some of the other PRs it would be great! It's a holiday tomorrow, and I'm not finished making individual PRs ;)