Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI/CD updates and cleanup #14

Merged
merged 49 commits into from
Aug 13, 2024
Merged

CI/CD updates and cleanup #14

merged 49 commits into from
Aug 13, 2024

Conversation

ldesousa and others added 30 commits July 31, 2024 18:58
Add basic tests for GeoPackage and Shapefile export which use import to test the result (so they test round trip but focus on the export).
…4033)

python(pydispatch): Apply code changes from upstream pydispatcher repo

Manual combination of latest changes of repo https://github.com/mcfletch/pydispatcher
GEOS 3.12 switched the default setting of the trim option to true.
To enable consistent behaviour to Vect_read_area_to_wkt() and
Vect_line_to_wkt() across GEOS versions, they now call new
2nd generation functions, which set this trim option explicitly
to false.
- update grass.py to use grass.app.runtime.get_grass_config_dir()
- update wxpython's core.utils.GetSettingsPath() to use grass.app.runtime.get_grass_config_dir()
- update g.extension
- update G_config_path() [libgis]

---------

Co-authored-by: Martin Landa <[email protected]>
Co-authored-by: Nicklas Larsson <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
#4127)

* Revert "style: Fixes some unnecessary-lambda (PLW0108) (#3956)"

This reverts commit 0cc7cbf.

* ruff: Ignore unnecessary-lambda (PLW0108) in gui
* CI(deps): Update ruff to v0.5.6

* Ignore 6 new issues of shadowing builtins

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Edouard Choinière <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Ruff rule: https://docs.astral.sh/ruff/rules/unnecessary-placeholder/

Even a docstring is enough to not need a placeholder, as it is a statement.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
… OpenMP (#3929)

* determine the number of threads for OpenMP in opt parser

* add OpenMP library paths

* solve segfault when nprocs option is not specified in the command

* only change nprocs for C module

* update the description of the function, which does not return any value

* add helper function, left parser unchanged

* return threads rather than change the answer of nprocs

* modify code based on review comments

* remove threads > logic cores check, update based on review comments
)

* Add Parallelization to TimeSeriesMap

* Specify nprocs

* Correct NPROCS

* Modify SeriesMap

* Modify BaseSeriesMap

* remove unused attribute

---------

Co-authored-by: Anna Petrasova <[email protected]>
* r.report: add json support

* address PR feedback

* fix segfault

* address PR feedback

* update tests to use CI dataset

* change created field to iso8601 datetime format

* fix created field test

* fix map description field

* Apply suggestions from code review

Co-authored-by: Edouard Choinière <[email protected]>

* update documentation

* Update raster/r.report/format.c

Co-authored-by: Nicklas Larsson <[email protected]>

---------

Co-authored-by: Edouard Choinière <[email protected]>
Co-authored-by: Nicklas Larsson <[email protected]>
use helper function to control the number of threads for OpenMP
ShubhamDesai and others added 8 commits August 8, 2024 10:19
t.rast.accumulate: Remove check of non-existing ˋrangeˋ option

Seems like a copy-paste artifact from another module like
t.rast.accdetect

Co-authored-by: Edouard Choinière <[email protected]>
* style: Fix self-assigning-variable (PLW0127)

* PLW0127: python/grass/temporal/core.py: The last change on this line was removing decode(mapset) for python 3.

* temporal/t.rast.accumulate/t.rast.accumulate.py:283:13: PLW0127 Self-assignment of variable `upper`
Following the patterns from the same file, it seems that it is the map id that is wanted

* temporal/t.rast.accdetect/t.rast.accdetect.py:241:13: PLW0127 Self-assignment of variable `indicator`

Usage seemed to mean to set the map id instead.

* gui/wxpython/psmap/instructions.py: PLW0127 Self-assignment of variables in EstimateWidth, EstimateHeight, and EstimateSize

* gui/wxpython/psmap/frame.py:2234:17: PLW0127 Self-assignment of variable `zoomFactor`

* Change `not` usage to `<=`

* gui/wxpython/animation/temporal_manager.py:292:21: PLW0127 Self-assignment of variable `end`
Removed assignment

* Apply ruff suggestion for collapsible-else-if (PLR5501)
* g.region: add JSON support

* add test and documentation

* add gmt, wms to output

* fix CI build issues

* separate projection code and name fields
renovate bot and others added 3 commits August 13, 2024 02:06
* CI(deps): Update ruff to v0.5.7

* Fix new RUF031 rule violations (incorrectly-parenthesized-tuple-in-subscript)

* Fix new ruff errors for C409: Unnecessary list comprehension passed to `tuple()` (rewrite as a generator)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Edouard Choinière <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@a0x8o a0x8o merged commit d8dd589 into a0x8o:main Aug 13, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.