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 #9

Merged
merged 66 commits into from
Jul 10, 2024
Merged

CI/CD updates #9

merged 66 commits into from
Jul 10, 2024

Commits on Jun 27, 2024

  1. CI: add nix package build test (#3906)

    * CI: add nix package and dev environment test
    
    * nix: exclude more files from package source
    
    ---------
    
    Co-authored-by: Edouard Choinière <[email protected]>
    imincik and echoix authored Jun 27, 2024
    Configuration menu
    Copy the full SHA
    3986103 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ab79e43 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6748067 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Configuration menu
    Copy the full SHA
    cb0e431 View commit details
    Browse the repository at this point in the history
  2. d.histogram: Initialize range_dmin and range_dmax to fix uninitialize…

    … value warnings in bar.c (#3923)
    
    The change satisfies the warning and does not change the behavior. The initial values (garbage or 0) are actually not used. `is_fp` conditions are used to set the values and drive their use (so that the initial values are not used).
    ShubhamDesai authored Jun 28, 2024
    Configuration menu
    Copy the full SHA
    695e550 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fb52c5b View commit details
    Browse the repository at this point in the history
  4. CI(deps): Update dependency PDAL/PDAL to v2.7.2 (#3937)

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

Commits on Jun 29, 2024

  1. Checks: fix flake8 E741 in gui/wxpython directory (#3926)

    * Rename self.l to self.item_attr when using self.l as an argument to wx.ItemAttr().
    
    * Rename l to layer when using l for loop through layer list.
    
    * Rename l to new_layer_lst when using l as an argument to self._tree.AddLayer().
    
    * Rename l to rli_conf when looping through the configuration files in self.rlipath.
    
    * Rename l to layer when looping through the self.map_.GetListOfLayers().
    
    * Rename l to dataset_info when sorting `allDatasets` with the lambda function.
    
    * Rename l to layer_num when looping through `catsDict.items()`.
    
    * Rename l to layer when retrieving layer information in a function.
    
    * Rename l to curr when looping through the `curr_sel_ls`.
    
    * Remove E741 for files in gui/wxpython directory.
    mshukuno authored Jun 29, 2024
    Configuration menu
    Copy the full SHA
    b5bfcd5 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2024

  1. d.histogram: Fix dead store warnings in bar.c (#3927)

    * d.histogram: Remove unnecessary assignment of draw variable in bar.c
    ShubhamDesai authored Jun 30, 2024
    Configuration menu
    Copy the full SHA
    3738001 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. style: Fixes unnecessary-collection-call (C408) for remaining code (#…

    …3948)
    
    * style: Fixes unnecessary-collection-call (C408) for remaining code
    
    Only applies fixes to non-empty collections by  `ruff check --select "C408" --unsafe-fixes --output-format=concise --fix` in order to limit the review scope.
    
    * style: Apply black formatting
    
    Separated in another commit for easier review of only the original changes without formatting
    
    * style: Fixes unnecessary-collection-call (C408) for ctypesgen
    
    Only applies fixes to non-empty collections by  `ruff check --select "C408" --unsafe-fixes --output-format=concise --fix` in order to limit the review scope.
    
    * style: Fixes unnecessary-collection-call (C408) for gui/wxpython/psmap/instructions
    
    * style: Adjust comment in gui/wxpython/psmap/instructions
    
    * style: Remove comment in gui/wxpython/psmap/instructions
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    386d478 View commit details
    Browse the repository at this point in the history
  2. style: Fixes manual-from-import (PLR0402) (#3949)

    Concerns Pylint rule "consider-using-from-import / R0402"
    
    Using `ruff check --output-format=concise --select PLR0402 --fix`.
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    85b047f View commit details
    Browse the repository at this point in the history
  3. style: Fixes unnecessary-collection-call (C408) for testsuite (#3947)

    * style: Fixes unnecessary-collection-call (C408) for testsuite
    
    Only applies fixes to non-empty collections by  `ruff check --select "C408" --unsafe-fixes --output-format=concise --fix --config 'include = ["*/testsuite/**.py"]'` in order to limit the review scope.
    
    * style: Apply black formatting
    
    Separated in another commit for easier review of only the original changes without formatting
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    837b796 View commit details
    Browse the repository at this point in the history
  4. style: Fixes if-stmt-min-max (PLR1730) (#3950)

    Concerns Pylint rules "consider-using-min-builtin / R1730" and "consider-using-max-builtin / R1731"
    
    Using `ruff check --output-format=concise --select PLR1730 --preview --fix`.
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    ce1a43c View commit details
    Browse the repository at this point in the history
  5. style(gui): Fixes literal-membership (PLR6201) (#3952)

    * style(gui/wxpython): Fixes literal-membership (PLR6201)
    
    Concerns Pylint rule "use-set-for-membership / R6201"
    
    Using `ruff check --output-format=concise --select PLR6201 --preview --unsafe-fixes --fix gui/`.
    
    * style: Apply single element in set formatting
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    2ae07bc View commit details
    Browse the repository at this point in the history
  6. style(temporal): Fixes literal-membership (PLR6201) (#3953)

    Concerns Pylint rule "use-set-for-membership / R6201"
    
    Using `ruff check --output-format=concise --select PLR6201 --preview --unsafe-fixes --fix 'temporal/' 'python/grass/temporal'`.
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    614e1e7 View commit details
    Browse the repository at this point in the history
  7. style: Fixes literal-membership (PLR6201) for other code (#3954)

    Concerns Pylint rule "use-set-for-membership / R6201"
    
    Using `ruff check --output-format=concise --select PLR6201 --preview --unsafe-fixes --fix`, but reverting some changes where it wasn't clear if it was safe.
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    ffa270b View commit details
    Browse the repository at this point in the history
  8. style: Fixes sys-exit-alias (PLR1722) (#3951)

    Using  `ruff check --select "PLR1722" --unsafe-fixes --output-format=concise --fix`.
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    a9d9dc4 View commit details
    Browse the repository at this point in the history
  9. docker: Downgrade PDAL to 2.7.1 in ubuntu_wxgui (#3946)

    When building the image, only PROJ 8.2.1 is available, and PDAL 2.7.2 checks for PROJ 9.0+. Reverting until the Dockerfile is modified to include PROJ 9.0+
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    7a1c8d9 View commit details
    Browse the repository at this point in the history
  10. style: Manual fixes for single-line-implicit-string-concatenation vio…

    …lations (ISC001) (#3944)
    
    * style: Manual fixes for single-line-implicit-string-concatenation violations (ISC001)
    
    Applies the remaining fixes that weren't picked up by `ruff check --select "ISC001" --fix` in order to limit the review scope.
    
    * style: Manual fixes for single-line-implicit-string-concatenation violations (ISC001) in ctypesgen code
    
    Applies the remaining fixes that weren't picked up by `ruff check --select "ISC001" --fix` in order to limit the review scope.
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    2a048b2 View commit details
    Browse the repository at this point in the history
  11. style: Fixes useless-return (PLR1711) (#3955)

    Concerns Pylint rule "useless-return / R1711"
    
    Using `ruff check --output-format=concise --select PLR1711 --fix`.
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    a9f81f4 View commit details
    Browse the repository at this point in the history
  12. style: Fixes useless-exception-statement (PLW0133) (#3957)

    Concerns Pylint rule "pointless-exception-statement / W0133"
    
    Using `ruff check --output-format=concise --select PLW0133 --unsafe-fixes --fix`.
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    734c93d View commit details
    Browse the repository at this point in the history
  13. style(temporal): Sort and group imports (#3959)

    * style(temporal): Sort and group imports
    
    Uses a combination of `ruff check --output-format=concise --select I --fix 'temporal/' 'python/grass/temporal'`, `isort --profile=black temporal python/grass/temporal` and `black .`
    
    * style(temporal): Sort and group imports for __init__.py
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    4f1b897 View commit details
    Browse the repository at this point in the history
  14. style: Fixes unnecessary-collection-call (C408) for empty collections (

    …#3945)
    
    * style: Fixes unnecessary-collection-call (C408) for empty collections
    
    Only applies fixes to empty collections by  `ruff check --select "C408" --unsafe-fixes --fix --config "lint.flake8-comprehensions.allow-dict-calls-with-keyword-arguments = true"` in order to limit the review scope.
    
    * style: apply black
    
    * Apply suggestions from code review
    
    ---------
    
    Co-authored-by: Stefan Blumentrath <[email protected]>
    echoix and ninsbl authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    e99f979 View commit details
    Browse the repository at this point in the history
  15. style: Fix single-line-implicit-string-concatenation violations (ISC0…

    …01) (#3943)
    
    * style: Fix single-line-implicit-string-concatenation violations (ISC001)
    
    Only applies safe fixes with `ruff check --select "ISC001" --fix` in order to limit the review scope.
    
    * style: Apply black formatting
    
    Separated in another commit for easier review of the changes of the first commit
    echoix authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    28bbce8 View commit details
    Browse the repository at this point in the history
  16. i.landsat.acca: Fix uninitialized variable issue (#3958)

    Co-authored-by: Shubham Vasudeo Desai <[email protected]>
    ShubhamDesai and Shubham Vasudeo Desai authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    939ed83 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7cf68ef View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. style: Fixes some unnecessary-lambda (PLW0108) (#3956)

    Concerns Pylint rule "unnecessary-lambda / W0108"
    
    Using `ruff check --output-format=concise --select PLW0108 --preview --fix --unsafe-fixes`.
    
    Didn't apply to cases where it wasn't clear if it was safe
    echoix authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    0cc7cbf View commit details
    Browse the repository at this point in the history
  2. raster: Fix uninitialized variable 'flowpq' in raster/r.terraflow/swe…

    …ep.cpp (#3966)
    
    Fix uninitialized variable 'flowpq' in raster/r.terraflow/sweep.cpp
    
    Co-authored-by: Shubham Vasudeo Desai <[email protected]>
    ShubhamDesai and Shubham Vasudeo Desai authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    69c616c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    16b69e4 View commit details
    Browse the repository at this point in the history
  4. r.profile: add JSON support (#3872)

    Use parson to add json output format support to the r.profile module.
    kritibirda26 authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    7f4aabf View commit details
    Browse the repository at this point in the history
  5. Checks: fix flake8 E741 remainder (#3928)

    * Rename l to line when using `f.readlines()`.
    
    * Remove "l"s from parameters since they aren't used.
    
    * Rename "l" to "lx" to assign a lexer object.
    
    * Add "# noqa: E741" as renaming parameters won't be applicable in this case.
    
    * Rename "l" to "ln" as line number.
    
    * Rename "l" to "layer" when looping through the layer list.
    
    * Remove E741 for files in the 'locale', `python`, and `scripts` directory.
    
    * Rename "ln" to "line_number".
    mshukuno authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    1a8cbec View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Configuration menu
    Copy the full SHA
    277a147 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5513912 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6424f9a View commit details
    Browse the repository at this point in the history
  4. r.univar: add JSON support (#3783)

    * Add JSON support to r.univar
    
    Use parson to add json output format support to the r.univar module.
    
    * Apply suggestions from code review
    
    ---------
    
    Co-authored-by: Nicklas Larsson <[email protected]>
    kritibirda26 and nilason authored Jul 3, 2024
    Configuration menu
    Copy the full SHA
    71ed433 View commit details
    Browse the repository at this point in the history
  5. v.univar: add JSON support (#3784)

    * Add JSON support to v.univar
    
    Use parson to add json output format support to the v.univar module.
    
    * update percentile format
    
    * rename test file
    kritibirda26 authored Jul 3, 2024
    Configuration menu
    Copy the full SHA
    cc75269 View commit details
    Browse the repository at this point in the history
  6. d.labels: Reduce scope of minreg and maxreg variables in main.c (#3979)

    Reduce scope of minreg and maxreg variables in d.labels/main.c
    
    Co-authored-by: Shubham Vasudeo Desai <[email protected]>
    ShubhamDesai and Shubham Vasudeo Desai authored Jul 3, 2024
    Configuration menu
    Copy the full SHA
    56eaf9e View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Configuration menu
    Copy the full SHA
    66c4df0 View commit details
    Browse the repository at this point in the history
  2. d.legend.vect: Reduce scope of 'bg_w' variable in draw.c (#3980)

    Reduce scope of 'bg_w' variable in d.legend.vect/draw.c
    
    Co-authored-by: Shubham Vasudeo Desai <[email protected]>
    ShubhamDesai and Shubham Vasudeo Desai authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    79726a0 View commit details
    Browse the repository at this point in the history
  3. lib: Fix uninitialized variable 'encoding' in parser_interface.c (#3975)

    Fix uninitialized variable 'encoding' in parser_interface.c
    
    Co-authored-by: Shubham Vasudeo Desai <[email protected]>
    ShubhamDesai and Shubham Vasudeo Desai authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    cb1e9b3 View commit details
    Browse the repository at this point in the history
  4. CI(ruff): Fine tune posting Ruff suggestions (#3978)

    * CI(ruff): Fix typo in ruff suggestions
    
    * CI(ruff): Upload suggestions even if not all linting errors were fixed
    
    * CI(ruff): Try suggesting more changes
    
    * CI(ruff): Upload suggestions even if not all linting errors were fixed but do not run when cancelled
    echoix authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    931e79a View commit details
    Browse the repository at this point in the history
  5. style: Fix unconventional-import-alias (ICN001) (consolidate `import …

    …grass.script as gs`) (#3981)
    
    * style: Unignore unconventional-import-alias (ICN001) ruff rule
    
    * style: Use convention `import matplotlib as mpl`
    
    * style: Use convention `import numpy as np`
    
    * style: Use convention `import grass.script as gs`
    
    * test: Remove unused grass.script in test file
    
    * style: Add missing alias to `import grass.script as gs`
    
    * style: Alias `import grass.script as gs` when already imported at file-level
    
    * Remove duplicated grass.script lazy import in wxpython/gui_core/ghelp.py
    echoix authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    d880ec0 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. Configuration menu
    Copy the full SHA
    d1738f6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e4b3ddd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6db6f81 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    30f7a3c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d528aa9 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2024

  1. Configuration menu
    Copy the full SHA
    b432e42 View commit details
    Browse the repository at this point in the history
  2. i.segment: Fix uninitialized struct member 'ngbr_rc.next' in mean_shi…

    …ft.c (#3973)
    
    imagery: Fix uninitialized struct member 'ngbr_rc.next' in mean_shift.c
    
    Co-authored-by: Shubham Vasudeo Desai <[email protected]>
    ShubhamDesai and Shubham Vasudeo Desai authored Jul 6, 2024
    Configuration menu
    Copy the full SHA
    559e088 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. lib: Fix uninitialized variable issue in shapiroe.c (#3994)

    Co-authored-by: Shubham Vasudeo Desai <[email protected]>
    ShubhamDesai and Shubham Vasudeo Desai authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    1c3c303 View commit details
    Browse the repository at this point in the history
  2. i.segment: Fix uninitialized struct member error in region_growing.c (#…

    …3974)
    
    * Fix uninitialized struct member error in region_growing.c
    
    Co-authored-by: Shubham Vasudeo Desai <[email protected]>
    Co-authored-by: Shubham Vasudeo Desai <[email protected]>
    3 people authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    83f615a View commit details
    Browse the repository at this point in the history
  3. lib: Fixed uninitialized variable warning in dmax.c by initializing d…

    …p, dp_max, dm, and dm_max to 0.0 (#3995)
    
    Fixed uninitialized variable warning in dmax.c by initializing dp, dp_max, dm, and dm_max to 0.0.
    ShubhamDesai authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    ef69cb4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c94708a View commit details
    Browse the repository at this point in the history
  5. style: Fix pylint pointless-statement (W0104) (#3996)

    * temporal: Actually call dbif.close() to fix pylint pointless-statement (W0104)
    
    * g.extension: Fix pylint pointless-statement (W0104)
    
    * temporal: Fix pointless-statement (W0104) in temporal_granularity
    
    * temporal: Fix pointless-statement (W0104) in c_libraries_interface.py, _read_vector_history() function
    
    * i.atcorr: Remove useless and non-working print statements in create_iwave.py
    
    * python(grass.imaging): Use PIL.__version__ call to fix pylint pointless-statement
    
    * style: Ignore ruff useless-expression (B018) for a gunittest data file. Equivalent to pylint pointless-statement / W010
    
    * style: Enable ruff useless-expression (B018) (equivalent to pylint pointless-statement / W010)
    echoix authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    cd64472 View commit details
    Browse the repository at this point in the history
  6. style: Fix replace-stdout-stderr (UP022) (#4000)

    Using `ruff check --output-format=concise --preview --select UP022 --unsafe-fixes --fix`
    echoix authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    e952443 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    f62b46f View commit details
    Browse the repository at this point in the history
  2. style: Fix if-expr-with-true-false (SIM210) and if-expr-with-false-tr…

    …ue (SIM211) (#3999)
    
    Relates to pylint rule simplifiable-if-expression / R1719
    echoix authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    7b72452 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    18d11ad View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2f5bed6 View commit details
    Browse the repository at this point in the history
  5. style: Fix pylint try-except-raise (W0706) (#3997)

    * python(grass.temporal): Fix pylint try-except-raise (W0706)
    
    Do not catch exception only to raise it again
    
    * gui/wxpython/core/utils: Fix pylint try-except-raise (W0706)
    
    * python: Fix pylint try-except-raise (W0706)
    
    * style: Enable ruff useless-try-except (TRY302) as fixed
    echoix authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    4be87a1 View commit details
    Browse the repository at this point in the history
  6. style: Fix incorrect-dict-iterator (PERF102) (#4007)

    When iterating over a dictionary with dict.items() but discarding either the values or the keys, dict.values() or dict.keys() should be used instead
    echoix authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    f4a407f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    89762ec View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    acc3e38 View commit details
    Browse the repository at this point in the history
  9. style: Fix not-in-test (E713) and not-is-test (E714) (#4011)

    * style: Fix not-is-test (E714)
    
    * style: Fix not-in-test (E713)
    echoix authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    b73eae5 View commit details
    Browse the repository at this point in the history
  10. raster: Fix uninitialized variable issue in o_var.c (#4005)

    Fix uninitialized variable issue in o_var.c
    
    Co-authored-by: Shubham Vasudeo Desai <[email protected]>
    ShubhamDesai and Shubham Vasudeo Desai authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    3e8706d View commit details
    Browse the repository at this point in the history
  11. raster3d: Fix uninitialized variable issue in main.c (#4006)

    Co-authored-by: Shubham Vasudeo Desai <[email protected]>
    ShubhamDesai and Shubham Vasudeo Desai authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    87b6ac0 View commit details
    Browse the repository at this point in the history