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

Refactoring & dependency updates #17

Merged
merged 209 commits into from
Oct 16, 2024
Merged

Refactoring & dependency updates #17

merged 209 commits into from
Oct 16, 2024

Commits on Sep 7, 2024

  1. Configuration menu
    Copy the full SHA
    9bbfd6b View commit details
    Browse the repository at this point in the history
  2. checks: Flake8 F841 fixes in the scripts directory part 2 (#4241)

    * Fix F841 problems in `scripts` directory
    
    * Update `.flake8` with fixes for F841
    
    * Remove unused lines based on reviewed suggestions
    mshukuno authored Sep 7, 2024
    Configuration menu
    Copy the full SHA
    102bc38 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    39e1e11 View commit details
    Browse the repository at this point in the history
  4. grass.app: Move ISIS integration to the library (#4169)

    Path setup for ISIS was lost in GIS variable setup. This moves it to the library, where other paths and integrations are initialized.
    
    The variables are left as is, without further testing.
    wenzeslaus authored Sep 7, 2024
    Configuration menu
    Copy the full SHA
    83ee146 View commit details
    Browse the repository at this point in the history
  5. r.out.png: reset file pointer to NULL after fclose (#4220)

    This patch continues the work from 917ba58. It's a good
    practice to immediately reset the file pointer once we
    do fclose on it, as it prevents using/closing descriptor
    allocated to another file in the future execution paths.
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    ymdatta authored Sep 7, 2024
    Configuration menu
    Copy the full SHA
    98e3fe1 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2024

  1. Configuration menu
    Copy the full SHA
    d7f4977 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. checks: flake8 F841 (local variable assigned to but never used) fixes…

    … in scripts directory part 1 (#4238)
    mshukuno authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    57cb4d9 View commit details
    Browse the repository at this point in the history
  2. v.external: Check for valid list before passing to qsort (#4280)

    Currently, if 'HAVE_OGR' macro is defined, as part of execution,
    we order all formats by name using qsort. But, list containing
    all formats is assigned based on a conditional and if the
    conditional fails, it can be NULL.
    Behavior of qsort is undefined when a NULL ptr is passed as array
    argument. To avoid getting into that situation, check if the array
    is NULL before performing qsort on it.
    This issue was found using cppcheck tool.
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    ymdatta authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    7c6c12b View commit details
    Browse the repository at this point in the history
  3. wxGUI/gmodeler: dialogs code refactoring (#3816)

    * g.gui.gmodeler: start refactoring
    
    * assign results from _getLabel() directly instead of using intermediate vars
    
    * do not run Getlabel() if not needed
    
    * VariableListCtrl: simplify (no need to run one loop twice)
    pesekon2 authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    b1c8d10 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cc2797c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    258752c View commit details
    Browse the repository at this point in the history
  6. CI(deps): Update ruff to v0.6.4 (#4279)

    * CI(deps): Update ruff to v0.6.4
    
    * style: Fix List index lookup in `enumerate()` loop (PLR1736) in __writeNvizState
    
    * style: Fix Unnecessary lookup of dictionary value by key (PLR1733) in iscatt_core.py
    
    * style: Fix `enumerate` index is unused, use `for plane in constants` instead (FURB148) in __writeNvizState
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
    renovate[bot] and echoix authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    b9c19ab View commit details
    Browse the repository at this point in the history
  7. v.out.ogr: Check for valid array before passing to qsort (#4278)

    Currently, filling list with GDAL driver names is based on
    a conditional and if the conditional fails, the list can be NULL.
    
    We pass this list to qsort to sort the names, but behavior
    of qsort with a NULL array is undefined. To avoid getting into this
    situation, check if the array is NULL before performing qsort on it.
    
    This issue was found using cppcheck tool.
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    ymdatta authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    85efe79 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. r.proj: Create unit tests (#4225)

    * create unit tests for r.proj
    
    * change the source project
    
    * update the validation values according to the map in the project
    
    * remove shell cmd, update doc, modify precision
    cyliang368 authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    997624b View commit details
    Browse the repository at this point in the history
  2. v.vol.rst: Initialize structure contents before passing it around (#4282

    )
    
    * v.vol.rst: Initialize structure contents before passing it around
    
    `skip_point` structure is not initialized when declared. This was
    found using cppcheck tool.
    
    Only when `cv` is true, `skip_point` contents are filled and the
    structure is used. cppcheck raised the issue when 'cv' is false.
    Technically, we don't need skip_point in such cases and not
    initializing it won't affect the execution. Nevertheless, it's a
    good practice to initialize structure contents at the time of
    declaration.
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    
    * Use correct literal for double type
    
    Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
    
    ---------
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
    ymdatta and nilason authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    a85c7b0 View commit details
    Browse the repository at this point in the history
  3. v.generalize: Initialize all of structure contents before using it (#…

    …4281)
    
    * v.generalize: Initialize all of structure contents before using it
    
    Currently, in `head` which is a `POINT_LIST` structure, we are
    only initializing the next pointer to NULL, but data present
    in the point substructure is not initialized which implies that
    it would be filled with random data. To avoid such scenario,
    initialize point coordinates to zero.
    
    This was found using cppcheck tool.
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    
    * Use correct literal for double type
    
    Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
    
    ---------
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
    ymdatta and nilason authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    76507cc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    adcdf28 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. CI: Resolve flake8 issues in utils directory (#4303)

    * resolved flake8 in utils
    
    * updated .flake8
    
    ---------
    
    Co-authored-by: Arohan Ajit <aajit@chirpn.com>
    arohanajit and aajit232 authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    e4fdf90 View commit details
    Browse the repository at this point in the history
  2. CI(deps): Update docker/dockerfile Docker tag to v1.10 (#4305)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    569c730 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. CI: Update .flake8 configuration and fix flake8 errors in lib/init/gr…

    …ass.py (#4289)
    
    * fixed flake8 errors in lib/init/grass.py
    
    * fixed flake8 details .flake8
    arohanajit authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    5719ba6 View commit details
    Browse the repository at this point in the history
  2. lib/db: Fix copy into fixed size buffer issue in SQLite driver (#4255)

    * drivers: copy into fixed size buffer issue
    
    * Requested changes
    
    * without variable
    
    * Update db/drivers/sqlite/db.c
    
    Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
    
    * Use Db statements
    
    ---------
    
    Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
    ShubhamDesai and nilason authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    dda0fb2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4d5184d View commit details
    Browse the repository at this point in the history
  4. GUI: fix ColumnSorterMixin regression (#4310)

    * fixing TypeError ColumnSorterMixin #4277
    
    * #4277 fix ColumnSorterMixin error
    rohannallamadge authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    5de8682 View commit details
    Browse the repository at this point in the history
  5. Checks: flake8 F841 (local variable assigned to but never used) fixes…

    … in the temporal directory (#4229)
    mshukuno authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    8c23c2e View commit details
    Browse the repository at this point in the history
  6. CI: Fix Flake8 linter errors in man/ directory (#4292)

    * resolved some more flake8 warnings
    
    * fixed all man flake8 errors except buildhtml
    
    * Update .flake8
    
    ---------
    Co-authored-by: Arohan Ajit <aajit@chirpn.com>
    arohanajit authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    b7bcd06 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9aeabc1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d77f457 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. GUI: gmodeler fix adding tool (#4309)

    * revert 2cf98da
    
    * fix regression introduced in f99780c
    landam authored Sep 13, 2024
    Configuration menu
    Copy the full SHA
    2c1df9f View commit details
    Browse the repository at this point in the history
  2. lib/gis: Add portable G_strlcat function (#4304)

    Add wrapper function for strlcat(), using system function if available, otherwise
    uses implementation by Todd C. Miller originated from
    https://github.com/openbsd/src/blob/e291b8af02e5c2b53d7ddb1f0c9c0fd608b97d45/lib/libc/string/strlcat.c.
    
    G_strlcat() is a safer alternative to strcat().
    nilason authored Sep 13, 2024
    Configuration menu
    Copy the full SHA
    cd5f1bd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7dbb49b View commit details
    Browse the repository at this point in the history
  4. lib: Accept more newline styles in G_getl (#3853)

    Use G_getl2 in G_getl to have everywhere the same behavior of supporting all newlines. Originally, G_getl2 was created to keep the behavior of G_getl. However, now, we want G_getl2 behavior everywhere.
    
    Keeping G_getl2 for compatibility. Code can later be clean up to use only G_getl, probably at the time when G_getl2 is removed (v9).
    
    The new test fails without the change in the library for CRLF for G_getl, but passes with the change. CR fails because it is not supported by fgets used since 88090da (#3850), so expecting failure for CR.
    
    Return and argument types for ctypes fopen need to be set for the code to work everywhere reliably.
    
    ---------
    
    Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
    wenzeslaus and nilason authored Sep 13, 2024
    Configuration menu
    Copy the full SHA
    d2f3477 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2024

  1. style: Fix all flake8-gettext (INT) errors (INT001, INT002, INT003) (#…

    …4052)
    
    * style: Fix all flake8-gettext (INT) errors (INT001, INT002, INT003)
    
    Ruff rules:
    https://docs.astral.sh/ruff/rules/f-string-in-get-text-func-call/
    https://docs.astral.sh/ruff/rules/format-in-get-text-func-call/
    https://docs.astral.sh/ruff/rules/printf-in-get-text-func-call/
    
    * Revert source string changes when unneeded.
    
    * Update univar_statistics.py
    
    Co-authored-by: Vaclav Petras <wenzeslaus@gmail.com>
    
    * Update panels.py for Python script type string
    
    * Update pyedit.py to keep path keyword in changed string
    
    * Update univar_statistics.py to make already translated strings match again
    
    * Update pyedit.py
    
    * Update model.py
    
    ---------
    
    Co-authored-by: Vaclav Petras <wenzeslaus@gmail.com>
    echoix and wenzeslaus authored Sep 14, 2024
    Configuration menu
    Copy the full SHA
    95da3ef View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

  1. v.in.dwg: Avoid using same variable as parameter and destination in s…

    …printf (#4262)
    
    v.in.dwg: Avoid using same variable as parameter and dest in sprintf
    
    Currently, one instance of sprintf has the same variable as parameter
    and destination in sprintf. This scenario leads to undefined
    behavior in C.
    
    Modify the code to:
    
    1. Write initial error string using snprintf() onto the buffer.
       Using snprintf() makes sure that we stay within the buffer size
       and avoid overflow errors.
    
    2. Use snprintf() again to write another error string at the end
       of previous error string in the same buffer. We again use
       snprintf() to make sure we are not overflowing the buffer with
       data.
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    ymdatta authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    1a89301 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. CI(macOS): Use micromamba-shell for steps to load PATH changes (#4325)

    Fixes problems with loading environment variables and path on the newest GitHub Actions macOS 20240911.3 runner image, that makes all builds fail.
    
    * CI(macOS): Use micromamba-shell for build and install
    
    * CI(macOS): Use micromamba-shell for printing versions
    
    * CI(macOS): Use micromamba-shell for pytest and gunittest
    echoix authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    213f024 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    63a80f5 View commit details
    Browse the repository at this point in the history
  3. CI(OSGeo4W): Add -pipe to CFLAGS and CXXFLAGS to reduce build time (#…

    …4326)
    
    With the current GitHub Hosted runners, the build step time is reduced by about 2 minutes, down to about 8min30 instead of about 10min30, for the couple builds I observed
    echoix authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    d0f1634 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3dbe2d7 View commit details
    Browse the repository at this point in the history
  5. CI(deps): Update ruff to v0.6.5 (#4315)

    * CI(deps): Update ruff to v0.6.5
    
    * style: Fix FURB188: Prefer `removeprefix` over conditionally replacing with slice.
    
    Ruff rule: https://docs.astral.sh/ruff/rules/slice-to-remove-prefix-or-suffix/
    
    This is a new rule introduced in ruff 0.6.5
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
    renovate[bot] and echoix authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    560340a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d7c126f View commit details
    Browse the repository at this point in the history
  7. r.clump: Fix unchecked return value from lseek (#4151)

    This change addresses an issue identified by Coverity Scan (CID : 1415709) [unchecked return value from library]. The checks are added for lseek usages using an error message already used in the library.
    
    ---------
    
    Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
    ShubhamDesai and echoix authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    7c27080 View commit details
    Browse the repository at this point in the history
  8. v.to.3d: Fix Resource Leak Issue in trans2.c (#4320)

    * Handling Resource Leak
    
    * Resource Leak
    ShubhamDesai authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    fdcd8d8 View commit details
    Browse the repository at this point in the history
  9. r.viewshed: initialize struct member before using struct (#4232)

    * r.viewshed: initialize struct member before using struct
    
    This was reported by cppcheck tool. Technically, we are not using
    the member in the struct variable in any of the subsequent
    functions, but it's a good practice to initialize all the struct
    members whenever possible.
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    
    * Use right literal while initializing angle
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    
    ---------
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    ymdatta authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    c840f3c View commit details
    Browse the repository at this point in the history
  10. i.rectify: Fix copy into fixed size buffer issue in main.c of i.recti…

    …fy module (#4299)
    
    * Copy into fix size buffer issue
    
    * removed variable Len
    
    * Update imagery/i.rectify/main.c
    
    Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
    
    ---------
    
    Co-authored-by: Shubham Vasudeo Desai <sdesai8@vclvm178-100.vcl.ncsu.edu>
    Co-authored-by: Shubham Vasudeo Desai <sdesai8@vclvm177-82.vcl.ncsu.edu>
    Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
    4 people authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    95c123d View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. i.segment: Move unused variable value into a code comment (#4153)

    * remove unused variable
    
    * Specify old ideas in the comment explicitly
    
    ---------
    
    Co-authored-by: Vaclav Petras <wenzeslaus@gmail.com>
    ShubhamDesai and wenzeslaus authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    826ab62 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a0486dd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    083fc21 View commit details
    Browse the repository at this point in the history
  4. docs: update and cleanup of infrastructure.md (#4294)

    - various minor updates
    - removal of GRASS Travis CI section
    neteler authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    df714ec View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a816dc1 View commit details
    Browse the repository at this point in the history
  6. t.rast.univar: Use pathlib Path.read_text to open test outputs in t.r…

    …ast.univar and t.rast3d.univar (#4334)
    echoix authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    5d6a2e8 View commit details
    Browse the repository at this point in the history
  7. docs: update outdated trac URLs to GitHub (#4317)

    Several documents and files contain references to documents on https://trac.osgeo.org/grass/wiki/ while newer versions exist in GitHub. This PR updates a series of URLs and drops the outdated files `CHANGES` and `NEWS`.
    Additionally, some minor markdown fixes.
    neteler authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    5e47e41 View commit details
    Browse the repository at this point in the history
  8. grass.temporal.abstract_space_time_dataset: Use Path.read_text() to l…

    …oad SQL template files (#4335)
    
    grass.temporal.abstract_space_time_dataset: Use Path.read_text() to load SQL template files
    
    Fixes ResourceWarnings about unclosed files, fixing ruff SIM115 at the same time.
    
    These 4 places were opening a file and reading it completely in the same line, but never closed explicitly the file, nor used a context manager that would kick in as much as possible on errors inside the calls.
    echoix authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    3bc6e95 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. lib/gis: match prototype with declaration for G_strlcat and G_strlcpy (

    …#4332)
    
    Make local implementations of strlcpy() and strlcat() optimizable by
    using restrict type qualifier, while keeping public API for G_strlcat
    and G_strlcpy available to C++ code and having identical prototype and
    declaration.
    nilason authored Sep 18, 2024
    Configuration menu
    Copy the full SHA
    da15442 View commit details
    Browse the repository at this point in the history
  2. grass.gunittest: Fix parsing exclusion from config file on Windows (#…

    …4324)
    
    * grass.gunittest: Ensure file list exists before processing exclusions
    
    * grass.gunittest: Use pathlib.Path to handle test files across platforms
    
    * grass.gunittest: Use pathlib.PurePath instead of concrete pathlib.Path
    
    * grass.gunittest: Also use pathlib.PurePath for patterns
    
    * grass.gunittest: Simplify pathlib filtering using a set comprehension
    
    * grass.gunittest: Add typing to fnmatch_exclude_with_base signature
    
    * style: Sort imports with isort
    
    * Add Edouard Choinière (echoix) to the authors
    
    * Fix typo in comment
    
    * grass.gunittest: Filter file list respecting all three filter arguments if specified
    
    * grass.gunittest: Change set comprehension variable name
    echoix authored Sep 18, 2024
    Configuration menu
    Copy the full SHA
    9420d00 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0536351 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4f8f676 View commit details
    Browse the repository at this point in the history
  5. grass.gunittest: Fix SIM115 using context managers to open files (#4338)

    * grass.gunittest: Use a context manager for opening htmldiff_file
    
    * grass.gunittest: Specify encoding for writing htmldiff_file
    
    * grass.gunittest: Write all lines of htmldiff_file at once
    
    * grass.gunittest: Use Path.write_text() to write htmldiff_file
    
    * grass.gunittest: Use a context manager for opening actual and reference files (SIM115)
    
    * grass.gunittest: Use a context manager for output StringIO in case.py
    
    * grass.gunittest: Use a context manager for opening files (SIM115)
    
    In function replace_in_file of reporters.py
    
    * grass.gunittest: Use a context manager for opening files (SIM115)
    
    In function wrap_stdstream_to_html of reporters.py
    
    * grass.gunittest: Use a context manager for opening files (SIM115)
    
    In function report_for_dirs of reporters.py. Reordered so string creation ends up together outside the context manger where the file is written.
    
    * grass.gunittest: Use a context manager for opening files (SIM115)
    
    In function end_file_test of class GrassTestFilesHtmlReporter of reporters.py. Reordered so string creation ends up together outside the context manger where the strings are written to the file.
    
    * grass.gunittest: Use a context manager for opening files (SIM115)
    
    In function report_for_dir of class TestsuiteDirReporter of reporters.py
    
    * grass.gunittest: Ignore remaining two SIM115 in reporters.py
    
    * grass.gunittest: Use a context manager for opening files in multireport (SIM115)
    
    * style: Enable checking of SIM115
    echoix authored Sep 18, 2024
    Configuration menu
    Copy the full SHA
    dc27b28 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. CI(deps): Update peter-evans/create-pull-request action to v7.0.5 (#4339

    )
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    b69cacf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    05584c1 View commit details
    Browse the repository at this point in the history
  3. v.in.dwg: Retire v.in.dwg infavor of v.in.redwg (#4329)

    v.in.dwg is linked to proprietary library 'OpenDWG toolkit'. One needs to become a member of OpenDWG Alliance to get the needed libraries and headers in order to compile this tool.
    
    However, OpenDWG webpage went offline around 2011 and we have 'v.in.redwg' as replacement for it (available in grass-addons). Hence retire 'v.in.dwg' tool.
    
    Besides the tool, this completely removes OpenDWG from configure.ac and platform.
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    ymdatta authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    7dc46cd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a536bd4 View commit details
    Browse the repository at this point in the history
  5. lib/gmath: use C interface to BLAS and LAPACK libraries (#4247)

    Replace outdated direct use of Fortran libraries via g2c.h,  f2c.h
    or private prototypes, with the C interface API and libraries
    CBLAS and LAPACKE. This simplifies our own code and makes
    it easier to maintain and expand.
    
    Configure is simplified to use pkg-config to retrieve INC and
    LIB info. `--with-blas` defaults to `--with-blas=cblas` where "cblas"
    is the pkg-config package name; `---with-lapack` defaults to
    `--with-lapack=lapacke`.
    
    If the default fails the test a list of package names are tested:
    - BLAS package names tested: cblas blas-netlib openblas blas-atlas
    - LAPACKE package name tested: lapacke openblas
    
    - CI(Linux): replace libopenblas-dev with liblapacke-dev dependency
    - CI(macOS): replace blas and lapack with openblas dependency
    - CI(Windows): replace lapack with openblas dependency
    nilason authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    d5bb442 View commit details
    Browse the repository at this point in the history
  6. docs: move Programmer's manual creation to INSTALL.md (#4336)

    - move Programmer's manual creation from `doc/development/README.md` to `INSTALL.md`.
    
    update `doc/development/README.md`
    - add Python API; add subsections
    - update URLs and wording
    - list guides
    
    - remove stray control chars (visible in vim) in `doc/development/style_guide.md`
    neteler authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    89cfc52 View commit details
    Browse the repository at this point in the history
  7. configure: fix default variable name for blas and lapack (#4343)

    In addition: improve handling of configuration with LAPACK
    without BLAS
    nilason authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    a94c3b0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5fd45e4 View commit details
    Browse the repository at this point in the history
  9. v.cluster: Fix unused value assignment (#4094)

    Removes the lines with unused assignments with 90%. The variable eps 90% value got overwritten. The used 99% confidence interval is mentioned in the documentation.
    
    Fixes the issue identified by Coverity Scan (CID: 1270389).
    ShubhamDesai authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    333d8e6 View commit details
    Browse the repository at this point in the history
  10. CI(macOS): Cache micromamba environment on same week (#4342)

    * CI(macOS): Cache micromamba environment on same day
    
    * Use year and week of year for cache key date segment
    
    * Update macos.yml
    
    Co-authored-by: Vaclav Petras <wenzeslaus@gmail.com>
    
    ---------
    
    Co-authored-by: Vaclav Petras <wenzeslaus@gmail.com>
    echoix and wenzeslaus authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    6607e1c View commit details
    Browse the repository at this point in the history
  11. style: Bump Black's target Python versions for Python 3.9 minimum (#4347

    )
    
    * style: Bump Black's target Python versions
    
    * style: Format with new Black settings
    echoix authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    51f865b View commit details
    Browse the repository at this point in the history
  12. style: Call startswith or endswith once with a tuple (PIE810) (#…

    …4348)
    
    style: Call `startswith` once with a `tuple` (PIE810)
    
    Ruff rule: https://docs.astral.sh/ruff/rules/multiple-starts-ends-with/
    echoix authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    75458f8 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. wxGUI/history: fix the run of a special cmds only once (#4322)

    After left double mouse click on the wxGUI history tab tree cmd node.
    
    Special cmds are:
    
    ```
    r"^d\..*|^r[3]?\.mapcalc$|^i.group$|^r.import$|^r.external$|^r.external.out$|"
    r"^v.import$|^v.external$|^v.external.out$"
    ```
    tmszi authored Sep 20, 2024
    Configuration menu
    Copy the full SHA
    4bb3156 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    64deef2 View commit details
    Browse the repository at this point in the history
  3. CI(OSGeo4W): Use setup-OSGeo4W action to parametrize install options (#…

    …4290)
    
    * CI(OSGeo4W): Use setup-OSGeo4W action to parametrize instal options
    
    * Remon extra double quote
    
    * Remove unnecessary space in OSGeo4W workflow file
    
    * CI: Multiline sorted OSGeo4W package list
    echoix authored Sep 20, 2024
    Configuration menu
    Copy the full SHA
    6bc69e3 View commit details
    Browse the repository at this point in the history
  4. lib/gmath: rename ATLAS_wrapper to CBLAS_wrapper (#4351)

    Rename file to reflect changes made with
    d5bb442
    nilason authored Sep 20, 2024
    Configuration menu
    Copy the full SHA
    bf41fc7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c4424ab View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2024

  1. doc: Fix most Flake8 issues in example files (#4353)

    This addresses F403 and F405. These are mostly related to wild card imports. This does not touch max line length issue with long tool description documentation line (current format limitation).
    arohanajit authored Sep 21, 2024
    Configuration menu
    Copy the full SHA
    2356520 View commit details
    Browse the repository at this point in the history
  2. g.proj: Fix copy into fixed size buffer issue in input.c file (#4359)

    Co-authored-by: Shubham Vasudeo Desai <sdesai8@vclvm178-195.vcl.ncsu.edu>
    ShubhamDesai and Shubham Vasudeo Desai authored Sep 21, 2024
    Configuration menu
    Copy the full SHA
    d89ad9e View commit details
    Browse the repository at this point in the history
  3. CI(deps): Update ruff to v0.6.7 (#4360)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Sep 21, 2024
    Configuration menu
    Copy the full SHA
    93781e5 View commit details
    Browse the repository at this point in the history
  4. tests: Re-enable passing tests from .gunittest.cfg exclusion list (#4358

    )
    
    * tests: Re-enable passing tests from .gunittest.cfg exclusion list
    
    * tests: Re-enable all macOS excluded tests that are passing
    
    * tests: Exclude back tests that are failing on macOS
    echoix authored Sep 21, 2024
    Configuration menu
    Copy the full SHA
    5aed1a6 View commit details
    Browse the repository at this point in the history
  5. checks: Move imports to the top in wxGUI/core (#4357)

    Moves imports to the top to fix Flake8 E402 warning for wxGUI/core.
    
    Also orders ignores alphabetically.
    arohanajit authored Sep 21, 2024
    Configuration menu
    Copy the full SHA
    0c1e79b View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. tests: Add xfail_windows decorator for failing tests on Windows (#4362

    )
    
    * grass.gunittest: Add xfail_windows decorator for Windows expected failures
    
    * lib/imagery: Add xfail_windows decorator to test functions
    
    * Fix spacing issue in xfail_windows warning message
    
    * Add stacklevel=2 to xfail_windows decorator warning message
    
    * Update utils.py
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    
    * Format end of file
    
    * Comment out warning in decorator
    
    * i.maxlik: Add xfail_windows decorator to SuccessTest class
    
    * lib/gis: Add xfail_windows decorator to TestNewlinesWithGetlFunctions class
    
    * Update warning stacklevel to 3
    
    * Update utils.py
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    
    * Update utils.py
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    
    * Update utils.py
    
    * tests: Add expected failures to failing tests on windows
    
    * tests: Apply xfail_windows decorator to setUpClass in lib/gis getl tests
    
    * tests: Apply xfail_windows decorator to parser json tests in lib/gis
    
    * tests: Apply xfail_windows decorator to failing test in lib/imagery
    
    * Remove wrong import of xfail_windows
    
    * tests: Temporarily remove all gunittest exclusions
    
    * tests: Apply xfail_windows decorator to failing test in test_gcmd.py
    
    * tests: Apply xfail_windows decorator to failing test in lib/init in test_grass_tmp_mapset.py
    
    * CI(OSGeo4W): Use an OSGeo4W-specific gunittest.cfg config file
    
    * Revert "tests: Temporarily remove all gunittest exclusions"
    
    This reverts commit 20eb947.
    
    * v.out.lidar: Apply xfail_windows decorator to one failing test
    
    * t.rast.series: Apply xfail_windows decorator to failing tests
    
    * t.connect: Apply xfail_windows decorator to three failing tests
    
    * g.search.modules: Apply xfail_windows decorator to a failing test
    
    * grass.temporal: Apply xfail_windows decorator to failing tests in unittests_temporal_raster_algebra_equal_ts
    
    * grass.gunittest: Apply xfail_windows decorator to failing test test_assertVectorEqualsAscii_by_import
    
    * tests: Re-enable excluded tests that are not failing on Windows
    
    * tests: Re-enable passing tests from .gunittest.cfg exclusion list
    
    * Update test_gis_lib_getl.py
    
    * Update test_raster_img.py
    
    * tests: Try re-enabling python/grass/script/testsuite/test_script_doctests.py
    
    * i.maxlik: Add xfail_windows decorator to all tests in class
    
    * tests: Exclude more tests that are failing on Windows
    
    * v.univar: Apply xfail_windows decorator to failing tests
    
    * t.rast.univar: Apply xfail_windows decorator to a failing test
    
    * r.in.gdal: Try avoiding error in calling gdal-config in skipif decorator on Windows
    
    * CI(OSGeo4W): Increase min-success to 96% for gunittest
    
    * Add line in test_grass_tmp_mapset.py
    
    * Update test_r_tileset.py
    
    ---------
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    echoix and github-actions[bot] authored Sep 22, 2024
    Configuration menu
    Copy the full SHA
    7b4a240 View commit details
    Browse the repository at this point in the history
  2. grass.temporal: fix regression in printing metadata (#4328)

    * grass.temporal: fix regression in printing metadata
    
    * Update python/grass/temporal/metadata.py
    
    Co-authored-by: Stefan Blumentrath <stefan.blumentrath@gmx.de>
    
    ---------
    
    Co-authored-by: Stefan Blumentrath <stefan.blumentrath@gmx.de>
    petrasovaa and ninsbl authored Sep 22, 2024
    Configuration menu
    Copy the full SHA
    6d046ec View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bd39db7 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Configuration menu
    Copy the full SHA
    6325a18 View commit details
    Browse the repository at this point in the history
  2. checks: Replace bare except (Flake8 E722) in po stats script (#4354)

    This addresses the PEP8 style error of mentioning specific exceptions (Flake8 E722) by specifying the exception type in the except clause within the writejson function in grass_po_stats.py. Now, bare except is replaced by OSError to catch only OS-related exceptions because os.remove() can raise various OS-related exceptions such as FileNotFoundError or PermissionError.
    
    Additionally, it confirms that no other common Flake8 errors (E122, E128, E231, E401) are present in the file by removing the other ignores.
    arohanajit authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    c32dd52 View commit details
    Browse the repository at this point in the history
  3. g.version: Add tests covering different outputs (#4219)

    This adds tests for different outputs of the g.version tool using pytest.
    ShubhamDesai authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    25afbfb View commit details
    Browse the repository at this point in the history
  4. ps.map: Fix memory leak issue (#4369)

    This addresses resource leak issue identified by Coverity Scan (CID : 1207906). Uses Vect_destroy_cats_struct() to destroy Cats and avoid the memory leak issue.
    ShubhamDesai authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    9e8874c View commit details
    Browse the repository at this point in the history
  5. CI(deps): Lock file maintenance (#4365)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    b35b1c3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c266f46 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. docker: Add liblapacke-dev package to Ubuntu builds (#4371)

    Adds liblapacke-dev package that was added to the apt.txt of the grass-addons repo.
    echoix authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    c593eb0 View commit details
    Browse the repository at this point in the history
  2. grass.jupyter: Fix session tests on Windows (#4368)

    The interpolated path strings aren't escaped when evaluated, so using a
    raw string allows C:\Users to not have an invalid \U escape sequence.
    echoix authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    16de4d3 View commit details
    Browse the repository at this point in the history
  3. checks: Replace bare except (Flake8 E722) in wxGUI/core (#4367)

    This addresses the PEP8 style error E722 by specifying exception types in all bare except clauses found in wxGUI/core. Unclear cases use Exception.
    
    ---------
    
    Co-authored-by: Vaclav Petras <wenzeslaus@gmail.com>
    arohanajit and wenzeslaus authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    04cc9ea View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ac66448 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    234209a View commit details
    Browse the repository at this point in the history
  6. docker: Sort package lists and configure options in Dockerfiles (#4373)

    * docker: Sort packages and configure options in Ubuntu Dockerfiles
    
    * docker: Sort packages and configure options in debian Dockerfile
    
    * docker: Sort packages and configure options in Alpine Dockerfile
    
    * docker: Sort packages and configure options in Ubuntu wxgui Dockerfile
    echoix authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    8c671ca View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. Configuration menu
    Copy the full SHA
    d99d840 View commit details
    Browse the repository at this point in the history
  2. grass.app: Move mapset locking to the library (#4158)

    This moves the lock_mapset function to the library. It introduces only small changes to the code, i.e., proper refactoring and de-duplication in relation to the code elsewhere is still needed.
    
    However, this unifies the error handling to always raising a custom exception. It also fixes the reported user using the mapset (before always the current user, now, the owner of the lock file; for that, lock file is removed only after getting its owner). This also removes the debug message which I don't find particularly useful, for example it is currently misleading on Windows and it is relatively easy to confirm the actual existence in process manager when debugging.
    
    Change message wording to add clarity. Fix translatable message are fixed. Uses format function everywhere.
    
    Gets install path (GISBASE) automatically (requires caller to have environment set up which is likely a reasonable requirement at this point).
    
    Fixes order of reporting owner and deleting the file. Cleans up order of paths.
    wenzeslaus authored Sep 25, 2024
    Configuration menu
    Copy the full SHA
    45a0486 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    68c7245 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0f75c27 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8261363 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7c651c3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    09c629d View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Configuration menu
    Copy the full SHA
    2098577 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    845dfd0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b835f4d View commit details
    Browse the repository at this point in the history
  4. r3.in.v5d: Fix unchecked return value from lseek (#4141)

    This addresses an issue identified by Coverity Scan (CID: 1207300), where the return value of the lseek function is not checked. Functions return as in other error states after issuing  a warning. Small step was taken towards consistency and simplification in another function which uses prints otherwise.
    ShubhamDesai authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    549ea90 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    edea810 View commit details
    Browse the repository at this point in the history
  6. checks: Fix E402 Flake8 in for wxGUI Sphinx doc (#4391)

    This fixes Flake8 E402 (Module level import not at top of file) for Sphinx documentation generator configuration script by removing import path manipulation block which was not properly working anyway.
    arohanajit authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    c502c1c View commit details
    Browse the repository at this point in the history
  7. CI(deps): Update ruff to v0.6.8 (#4394)

    * CI(deps): Update ruff to v0.6.8
    
    * style: Use `kargs.get("layerTree")` instead of `kargs.get("layerTree", None)` (SIM910)
    
    * style: Simplify chained boolean comparison
    
    * Apply black formatting
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
    renovate[bot] and echoix authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    e4c87ec View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Configuration menu
    Copy the full SHA
    bcb2938 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2024

  1. style: Remove misleading author info from wxGUI photo and image code (#…

    …4403)
    
    Just to be clear that I did not create these files, I'm removing my name which was copy-pasted into these files while duplicating the code from somewhere else.
    wenzeslaus authored Sep 28, 2024
    Configuration menu
    Copy the full SHA
    7f05bb3 View commit details
    Browse the repository at this point in the history
  2. docs: fixed E265 from image2target/ (#4399)

    * removed e265
    
    * update .flake8
    
    * removed commented out parser code
    
    * removed parser code
    arohanajit authored Sep 28, 2024
    Configuration menu
    Copy the full SHA
    4f689fe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fee26ec View commit details
    Browse the repository at this point in the history
  4. style: Fix negate-equal-op (SIM201) (#4407)

    * style: Fix negate-equal-op (SIM201)
    
    Ruff rule: https://docs.astral.sh/ruff/rules/negate-equal-op/
    
    * style: Fix repeated-equality-comparison (PLR1714) on changed code
    echoix authored Sep 28, 2024
    Configuration menu
    Copy the full SHA
    49f67fd View commit details
    Browse the repository at this point in the history
  5. style: Fix os-stat (PTH116) by replacing os.stat() calls with pathlib (

    …#4412)
    
    * style: Fix os-stat (PTH116) by replacing os.stat() calls with pathlib
    
    Ruff rule: https://docs.astral.sh/ruff/rules/os-stat/
    
    * Change remaining os.stat() usages
    
    * Fix Path join with a string
    echoix authored Sep 28, 2024
    Configuration menu
    Copy the full SHA
    5eca6d6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ead659f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    70f3599 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ae5e4dd View commit details
    Browse the repository at this point in the history
  9. style: Fix reimplemented-operator (FURB118) (#4408)

    * style: Fix reimplemented-operator (FURB118)
    
    Ruff rule: https://docs.astral.sh/ruff/rules/reimplemented-operator/
    
    Replaced lambdas with `operator.itemgetter()` or `operator.add()`. These are implemented more efficiently in C and have a Python fallback.
    
    * utils/g.html2man: Replace children function with operator.itemgetter
    echoix authored Sep 28, 2024
    Configuration menu
    Copy the full SHA
    0ea5e37 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2024

  1. lib/shapelib: sync upstream with shapelib 1.6.0 and GDAL 3.9.2 (#4395)

    * fix win runner (-Wincompatible-pointer-types warnings)
    
    * remove patch of http://trac.osgeo.org/gdal/ticket/809
    nilason authored Sep 29, 2024
    Configuration menu
    Copy the full SHA
    16c87b1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e82663c View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. raster: Add library function to ask for mask presence (#4402)

    To avoid asking about presence of the MASK raster, add a library function which checks for presence of the raster hiding its name in the library. Motivation for this is a greater mask abstraction.
    
    Some code needs to link to newly raster library (which was previously used transitively).
    wenzeslaus authored Sep 30, 2024
    Configuration menu
    Copy the full SHA
    108e5e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    808acd3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e02b921 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    33d0d15 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    480e050 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    afbc3ae View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e427da0 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. wxGUI: Fixed F841 in ii2t_manager.py (#4418)

    * fixed e722 in ii2t_manager
    
    * revert
    
    * fixed F841 in iit2t_manager.py
    
    * removed point from ii2t_mapdisplay
    
    * updated BusyInfo to use context manager
    arohanajit authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    3e53e34 View commit details
    Browse the repository at this point in the history
  2. wxGUI: Fix E722 do not use bare 'except' warnings in gui_core/ (#4396)

    * updated 722 from gui_core
    
    * updated flake8
    
    * updated ghelp v2
    
    * updated ghelp v3
    
    * Update gui/wxpython/gui_core/dialogs.py
    
    Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
    
    * removed prints
    
    * Update dialogs.py
    
    * updated indexerror
    
    * updated exception
    
    * Update .flake8
    
    * Update .flake8
    
    ---------
    
    Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
    arohanajit and petrasovaa authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    25619dd View commit details
    Browse the repository at this point in the history
  3. v.generalize: Fix Resource Leak issue in displacement.c (#4422)

    * fix Resource Leak
    
    * fix for points
    ShubhamDesai authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    6382949 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    13cda73 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ed10037 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e9768eb View commit details
    Browse the repository at this point in the history
  7. wxGUI: Fixed E722 in ii2t_gis_set.py (#4417)

    * fix 722 in iit2t_gis_set
    
    * added ii2t-manager
    
    * Update ii2t_gis_set.py
    
    * Update ii2t_manager.py
    
    * Update ii2t_gis_set.py
    arohanajit authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    3f61cd7 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Configuration menu
    Copy the full SHA
    61407f0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fa30424 View commit details
    Browse the repository at this point in the history
  3. wxGUI: Fix F405 error by explicitly importing required modules in isc…

    …att/ (#4426)
    
    * update 405 in core_c
    
    * updated flake8
    
    * support explicit imports
    
    * ran isort to make sort imports
    arohanajit authored Oct 2, 2024
    Configuration menu
    Copy the full SHA
    1b639db View commit details
    Browse the repository at this point in the history
  4. wxGUI: FIxed F841 is iscatt/core_c.py (#4430)

    * fixed 841
    
    * updated flake8
    arohanajit authored Oct 2, 2024
    Configuration menu
    Copy the full SHA
    f0a997c View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. wxGUI: Fixed F841 in dialogs.py, frame.py (#4431)

    * fixed 841
    
    * removed dlgSize comments
    arohanajit authored Oct 3, 2024
    Configuration menu
    Copy the full SHA
    aa1c32a View commit details
    Browse the repository at this point in the history
  2. v.colors: Fix resource leak issue in scan_attr.c file (#4423)

    * fix resource leak
    
    * close database driver
    ShubhamDesai authored Oct 3, 2024
    Configuration menu
    Copy the full SHA
    a4d3cea View commit details
    Browse the repository at this point in the history
  3. r.fill.dir: Fix unchecked return value in filldir.c (#4433)

    * fix unchecked value
    
    * Update raster/r.fill.dir/filldir.c
    
    * G_fatal
    ShubhamDesai authored Oct 3, 2024
    Configuration menu
    Copy the full SHA
    617828d View commit details
    Browse the repository at this point in the history
  4. r.thin: Fix unchecked return value in io.c (#4434)

    check return value
    ShubhamDesai authored Oct 3, 2024
    Configuration menu
    Copy the full SHA
    4bec714 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    de8a6fd View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d7c79a8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7b73900 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2024

  1. Configuration menu
    Copy the full SHA
    d4e46dc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a96c073 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a186638 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    359a62b View commit details
    Browse the repository at this point in the history
  5. wxGUI: Fixed F841 in iscatt/ (#4432)

    * fixed all F841
    
    * updated flake8
    
    * reverted add_callback
    
    * Update plots.py
    arohanajit authored Oct 4, 2024
    Configuration menu
    Copy the full SHA
    7f81c6d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    60f7135 View commit details
    Browse the repository at this point in the history
  7. style: Fix invalid-escape-sequence (W605) (#4409)

    * style: Fix invalid-escape-sequence (W605)
    
    Ruff rule: https://docs.astral.sh/ruff/rules/invalid-escape-sequence/
    
    * r.in.ascii: Remove test_csv and test_uncommon_delims
    echoix authored Oct 4, 2024
    Configuration menu
    Copy the full SHA
    1e86629 View commit details
    Browse the repository at this point in the history
  8. wxGUI: Fixed F841 and E266 in lmgr/ (#4439)

    fixed f841 and e266
    arohanajit authored Oct 4, 2024
    Configuration menu
    Copy the full SHA
    eebf369 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a16a02f View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2024

  1. style: Fix all remaining PT flake8-pytest-style issues (#4452)

    * style: Fix pytest-parametrize-names-wrong-type (PT006)
    
    Ruff rule: https://docs.astral.sh/ruff/rules/pytest-parametrize-names-wrong-type/
    
    * style: Fix pytest-composite-assertion (PT018)
    
    Ruff rule: https://docs.astral.sh/ruff/rules/pytest-composite-assertion/
    
    * style: Remove unneeded exclusions of pytest rules
    
    * style: Fix pytest-incorrect-pytest-import (PT013)
    
    Ruff rule: https://docs.astral.sh/ruff/rules/pytest-incorrect-pytest-import/
    
    * Move PT009 exclusion to only exclude on python/grass/gunittest/case.py
    
    * grass.script: Ignore pytest-raises-too-broad (PT011) in grass_script_setup_test.py::test_init_session_finish
    echoix authored Oct 5, 2024
    Configuration menu
    Copy the full SHA
    093411b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5281602 View commit details
    Browse the repository at this point in the history
  3. style: Fix unnecessary-range-start (PIE808) (#4455)

    As 0 is the default start value, it can be safely omitted.
    
    Ruff rule: https://docs.astral.sh/ruff/rules/unnecessary-range-start/
    echoix authored Oct 5, 2024
    Configuration menu
    Copy the full SHA
    209739a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cd9e0a4 View commit details
    Browse the repository at this point in the history
  5. CI(deps): Update pre-commit hook pre-commit/pre-commit-hooks to v5 (#…

    …4460)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Oct 5, 2024
    Configuration menu
    Copy the full SHA
    6596d49 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2024

  1. lib/lidar: Fix resource leak issue in raster.c (#4458)

    Fix resource leak
    ShubhamDesai authored Oct 7, 2024
    Configuration menu
    Copy the full SHA
    3932773 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aa0b497 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b5c4a27 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    de39e1c View commit details
    Browse the repository at this point in the history
  5. style: Fix superfluous-else-return (RET505) (#4459)

    * style: Fix superfluous-else-return (RET505)
    
    Ruff rule: https://docs.astral.sh/ruff/rules/superfluous-else-return/
    
    When there is an if with a return, the next `elif:` or `else:` can be flattened with one less nested level. This kind of early-return pattern is common in C#. Having simpler conditions that return, then the rest of flow continues otherwise
    
    * Apply black
    echoix authored Oct 7, 2024
    Configuration menu
    Copy the full SHA
    703d9f8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5e5f30e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    56ba44c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    368f0eb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    573d54a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3f6a6e4 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3ce2a0f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b418733 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. Configuration menu
    Copy the full SHA
    498676c View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. Configuration menu
    Copy the full SHA
    cbe2b9e View commit details
    Browse the repository at this point in the history
  2. docs: minor fixes to g.gisenv, i.atcorr, v.centroids, v.overlay, v.ty…

    …pe (#4484)
    
    - g.gisenv.html: add EXAMPLES section (MEMORYMB, NPROCS)
    - i.atcorr.html: explain missing acronyms
    - v.centroids.html: start intro with what a centroid means
    - v.out.svg: fix GRASS_NS URL (fixes #4474)
    - v.overlay figures: colorize selected polygon in yellow color, not grey (sync to v.select)
    - v.type.html: explain vector object types in intro
    
    Note that the v.overlay figures should be redone to improve their quality (in a different PR).
    
    Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
    neteler and petrasovaa authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    400b0df View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. Configuration menu
    Copy the full SHA
    3a95b7a View commit details
    Browse the repository at this point in the history
  2. doc: Use lowercase for 2D raster mask (#4401)

    On many places (more than covered here), 2D raster mask is called MASK conflating the concept (mask) and the implementation (MASK raster). Users using the r.mask tool may not interact with the underlying raster directly, so there is no reason to use MASK over mask.
    
    This is changing MASK to mask and modifies related wording. However, this is also leaving many places as they are with MASK. Some will be better revisited with or after #2390 and #2392 when a more comprehensive solution is available.
    
    This fixes and keeps in sync wording in r.null and r.external, and moves r.circle comment documenting the interface to a flag description.
    wenzeslaus authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    b9a6b68 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2e0a8fa View commit details
    Browse the repository at this point in the history
  4. doc: Ignore F401 in dialogs.py (#4488)

    dialogs.py has an instance of F401 error for unused import of grass library. However as mentioned in the comment and post discussion with @wenzeslaus I decided it would be better to ignore this error for now in case it breaks any underlying dependencies regarding gettext.install()
    arohanajit authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    21606ad View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    426bf74 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cbc3ff4 View commit details
    Browse the repository at this point in the history
  7. r.mask.status: Check mask status through a tool and function (#2390)

    Instead of using low-level test of file existence with hardcoded raster path and name, this offers a new tool to retrieve status of the raster mask.
    
    The new r.mask.status tool reports presence or absence of the 2D raster mask and provides additional details about the mask.
    
    There is one usage of this now and that's the one for a shell prompt. The prompt no longer relies on testing the file presence with the test program, but uses a GRASS tool to find out.
    
    The code goes out of its way to report both mask name (currently always MASK) and the underlying raster name if it is a reclassified (without rewriting the current C API). This is to mimic the existing C functions which are returning the underlying raster if MASK is a reclass. The tool and the new C API function return both preparing a way for using an arbitrary name for the mask while having the option to look at the underlying reclassified raster map.
    wenzeslaus authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    1d42e58 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2024

  1. Configuration menu
    Copy the full SHA
    0feea31 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9df8433 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4cf93d2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    71066f4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    542f3b4 View commit details
    Browse the repository at this point in the history
  6. v.to.db: Fix Resource Leak issue in areas.c (#4498)

    * Fix Resource Leak issue
    
    * Fix Resource Leak issue
    ShubhamDesai authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    779af80 View commit details
    Browse the repository at this point in the history
  7. d.vect: Fix Resource Leak issue in attr.c (#4496)

    * fix Resource Leak issue
    
    * Update display/d.vect/attr.c
    ShubhamDesai authored Oct 12, 2024
    Configuration menu
    Copy the full SHA
    03675b0 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. Configuration menu
    Copy the full SHA
    3c4aa6d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb7cbab View commit details
    Browse the repository at this point in the history
  3. ps.map: initialize variable contents before using them in get_ll_boun…

    …ds (#4501)
    
    In some situations, when some conditionals fails, we would be assigning
    uninitialized variables to values, which is undefined behavior. Fix that
    by assigning a value to the variables.
    
    This was found using cppcheck tool.
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    ymdatta authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ed02be5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b5289ee View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e139a4c View commit details
    Browse the repository at this point in the history
  6. r.mask.status: fix null pointer dereference and false positive string…

    … overflow (#4512)
    
    Fixes two new issues reported by Coverity Scan:
    
    - Handles case of unsuccessful creation of json string
    - Silences false positive issue for string copy operation to buffer of size GMAPSET_MAX from G_mapset().
    nilason authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    61b380f View commit details
    Browse the repository at this point in the history
  7. style: Ignore deprecated PT004 rule (#4520)

    Ruff rule PT004 is deprecated, so doesn't run with --preview flag, but still appears without the --preview flag.
    Since the only error won't be fixed, ignore that rule for the time being.
    echoix authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    761d98a View commit details
    Browse the repository at this point in the history
  8. pytest: Collect code coverage in multiple workers too (#4451)

    * pytest: Collect code coverage in multiple workers too
    
    * utils: Handle paths that already have a .py extension in coverage_mapper
    
    * CI: Set INITIAL_GISBASE and INITIAL_PWD env vars for running pytest with multiple workers
    
    * Coverage: Omit gui/wxpython subfolders for now
    
    They are not covered at all and take some noticeable time to collect
    
    * Coverage: Remove unneeded omit patten for gui/wxpython subfolders
    echoix authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    3a9059b View commit details
    Browse the repository at this point in the history
  9. v.net.timetable: Fix Resource Leak issue in main.c (#4508)

    * Fix Resource Leak issue
    
    * requested changes
    ShubhamDesai authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a98691f View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Configuration menu
    Copy the full SHA
    f241532 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c5c5ec5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    15c5737 View commit details
    Browse the repository at this point in the history
  4. tests: enable use of md5 bin for checksum in raster_md5test.sh (#4527)

    Makes the script runnable on e.g. BSD platforms, which does not ship with md5sum.
    
    In addition fixes shellcheck warnings.
    nilason authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    ca171b7 View commit details
    Browse the repository at this point in the history
  5. lib/vector/Vlib: always write out topo files in update mode (#3459)

    * Vlib: always write out topo files in update mode
    * delete support files only when closing
    * fix pygrass Vect_close
    
    ---------
    
    Co-authored-by: Huidae Cho <grass4u@gmail.com>
    metzm and HuidaeCho authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    f7d2ecf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c0c5380 View commit details
    Browse the repository at this point in the history
  7. doc: Use lowercase for 2D raster mask and other masks (#4495)

    Similarly to #4401, this replaces usage of MASK by mask on additional places. It also improves wording of a warning in i.fft.
    wenzeslaus authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    f22c9a2 View commit details
    Browse the repository at this point in the history
  8. r3.in.v5d: Prevent integer overflow by changing literal constant type…

    … on Cray (#4363)
    
    When the code is being compiled for CRAY HPC machines, a macro and
    a function to convert IEEE single precision floating point number
    to CRAY number are defined.
    
    To adjust the base, '16258' constant is being used, which according
    to C rules (C99, section 6.4.4.1, subsection semantics) fits into
    an integer. Right shifting that integer, which is of 32 bits, by
    48 results in integer overflow. Avoid this by defining the
    literal constant with the long data type.
    
    This comes with an extended discussion in PR #4363 and an idea to remove the code completely.
    
    Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
    ymdatta authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    ec2bc8a View commit details
    Browse the repository at this point in the history
  9. CI: Assign milestone on merged PRs (#4414)

    * CI: Create a workflow to assign milestones
    
    * Add GH_TOKEN for gh cli
    
    * CI: Add GH_REPO for gh cli
    
    * CI: View PR from gh cli using html_url
    
    * CI: Download and parse version file
    
    * CI: Show version file
    
    * CI: Download and parse version file using a pipe
    
    * Show version file output
    
    Clean up
    
    * Pipe version file env to head
    
    * Rename variables to milestone and title
    
    * Edit PR with milestone
    
    * Get milestone from gh cli
    
    * Add comment on why API call is used for getting milestone
    
    * Show if the PR has a milestone set or not
    
    * Do not run steps if a milestone is already set
    
    * Add pull_request_target closed trigger
    
    * Add ref as url parameter
    
    * Remove debugging steps
    
    * CI: Handle RC followed by numbers in sed pattern replacement
    echoix authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    1adbd2c View commit details
    Browse the repository at this point in the history
  10. tests: Revise content of the root testsuite dir (#4516)

    * Remove Makefiles.
    * Move the functioning test to the testsuite directory for the gunittest to pick it up.
    * Remove the extended example how to run gunittest. Point to the CI in the README instead.
    * Remove hemisphere generator because it does not test anything by itself (without further processing and a human).
    * Remove GPS import tests as the tools are not in core.
    * Remove division into subdirectories. The directories with the code should be used instead.
    * Improve the test for gunittest loader function with some duplication but now creating an overview of .py and .sh tests.
    wenzeslaus authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    9a79aa4 View commit details
    Browse the repository at this point in the history
  11. doc: Use lowercase for mask (#4529)

    Again, use lowercase mask and other wording instead of MASK when talking about masking, similar to #4401 and #4495.
    
    It also adjusts the wording in r.topidx and i.segment.
    wenzeslaus authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    bc9cb2a View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Configuration menu
    Copy the full SHA
    2415894 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    362bee3 View commit details
    Browse the repository at this point in the history