Skip to content

fix(ci): pre-commit — PR #459 - #479

Closed
barneydobson wants to merge 2 commits into
mainfrom
pr-maintainer/pr-459-fix-1776768710
Closed

barneydobson wants to merge 2 commits into
mainfrom
pr-maintainer/pr-459-fix-1776768710

Conversation

@barneydobson

Copy link
Copy Markdown
Collaborator

Automated fix targeting ImperialCollegeLondon/SWMManywhere#459.

What failed (classification)

  • Kind: pre_commit (pre-commit)
  • Notes: pre-commit-style log; no hook id lines parsed

Reproduce locally

  • Strategy: pre-commit all hooks (no hook ids parsed)

Command used for the final green verify:

pip install -e ".[dev]" && pre-commit run --all-files --show-diff-on-failure

Failing CI run

Excerpt from downloaded Actions logs (may be truncated):

test session starts ==============================
2026-03-31T08:52:23.1949416Z platform linux -- Python 3.10.20, pytest-9.0.2, pluggy-1.6.0 -- /opt/hostedtoolcache/Python/3.10.20/x64/bin/python
2026-03-31T08:52:23.1950080Z cachedir: .pytest_cache
2026-03-31T08:52:23.1950430Z rootdir: /home/runner/work/SWMManywhere/SWMManywhere
2026-03-31T08:52:23.1950835Z configfile: pyproject.toml
2026-03-31T08:52:23.1951151Z plugins: cov-7.1.0, mock-3.15.1, mypy-1.0.1
2026-03-31T09:08:24.2793722Z collecting ... collected 110 items / 8 deselected / 102 selected
2026-03-31T09:08:24.2794138Z 
2026-03-31T09:08:24.2855727Z src/swmmanywhere/geospatial_utilities.py::swmmanywhere.geospatial_utilities.get_transformer PASSED [  0%]
2026-03-31T09:08:24.3792024Z src/swmmanywhere/geospatial_utilities.py::swmmanywhere.geospatial_utilities.get_utm_epsg PASSED [  1%]
2026-03-31T09:08:24.3879354Z src/swmmanywhere/post_processing.py::swmmanywhere.post_processing.explode_polygon PASSED [  2%]
2026-03-31T09:08:24.4654402Z src/swmmanywhere/post_processing.py::swmmanywhere.post_processing.format_to_swmm_dict PASSED [  3%]
2026-03-31T09:09:17.8255540Z tests/test_cli.py::test_swmmanywhere_cli PASSED                          [  4%]
2026-03-31T09:09:17.8274262Z tests/test_geospatial_utilities.py::test_interp_with_nans PASSED         [  5%]
2026-03-31T09:09:17.8315545Z tests/test_geospatial_utilities.py::test_interpolate_points_on_raster PASSED [  6%]
2026-03-31T09:09:18.0157248Z tests/test_geospatial_utilities.py::test_get_utm PASSED                  [  7%]
2026-03-31T09:09:18.0427524Z tests/test_geospatial_utilities.py::test_reproject_raster PASSED         [  8%]
2026-03-31T09:09:18.0445004Z tests/test_geospatial_utilities.py::test_get_transformer PASSED          [  9%]
2026-03-31T09:09:18.0466314Z tests/test_geospatial_utilities.py::test_reproject_graph PASSED          [ 10%]
2026-03-31T09:09:18.0484954Z tests/test_geospatial_utilities.py::test_nearest_node_buffer PASSED      [ 11%]
2026-03-31T09:09:18.0565695Z tests/test_geospatial_utilities.py::test_burn_shape_in_raster PASSED     [ 12%]
2026-03-31T09:09:26.8971552Z tests/test_geospatial_utilities.py::test_derive_subcatchments[True-pyflwdir-2498-0.1187-28.202] PASSED [ 13%]
2026-03-31T09:09:27.6786634Z tests/test_geospatial_utilities.py::test_derive_subcatchments[True-whitebox-2998-0.1102-30.894] PASSED [ 14%]
2026-03-31T09:09:27.7108741Z tests/test_geospatial_utilities.py::test_derive_subcatchments[False-pyflwdir-2498-0.1187-28.202] PASSED [ 15%]
2026-03-31T09:09:28.4575774Z tests/test_geospatial_utilities.py::test_derive_subcatchments[False-whitebox-2998-0.1102-30.894] PASSED [ 16%]
2026-03-31T09:09:28.6873773Z tests/test_geospatial_utilities.py::test_derive_rc PASSED                [ 17%]
2026-03-31T09:09:28.6886159Z tests/test_geospatial_utilities.py::test_calculate_angle PASSED          [ 18%]
2026-03-31T09:09:28.7008526Z tests/test_geospatial_utilities.py::test_remove_intersections PASSED     [ 19%]
2026-03-31T09:09:28.7323935Z tests/test_geospatial_utilities.py::test_graph_to_file[.geojson] PASSED  [ 20%]
2026-03-31T09:09:28.8254255Z tests/test_geospatial_utilities.py::test_graph_to_file[.geoparquet] PASSED [ 21%]
2026-03-31T09:09:28.8288689Z tests/test_geospatial_utilities.py::test_merge_points PASSED             [ 22%]
2026-03-31T09:09:28.8443287Z tests/test_graph_utilities.py::test_save_load PASSED                     [ 23%]
2026-03-31T09:09:28.8475087Z tests/test_graph_utilities.py::test_assign_id PASSED                     [ 24%]
2026-03-31T09:09:28.8535143Z tests/test_graph_utilities.py::test_double_directed PASSED               [ 25%]
2026-03-31T09:09:28.8952660Z tests/test_graph_utilities.py::test_calculate_streetcover PASSED         [ 26%]
2026-03-31T09:09:28.9167701Z tests/test_graph_utilities.py::test_split_long_edges PASSED              [ 27%]
2026-03-31T09:09:30.2124470Z tests/test_graph_utilities.py::test_derive_subcatchments PASSED          [ 28%]
2026-03-31T09:09:30.2253973Z tests/test_graph_utilities.py::test_set_elevation_and_slope PASSED       [ 29%]
2026-03-31T09:09:30.2301414Z tests/test_graph_utilities.py::test_chahinian_angle PASSED               [ 30%]
2026-03-31T09:09:30.2353033Z tests/test_graph_utilities.py::test_calculate_weights PASSED             [ 31%]
2026-03-31T09:09:30.2402347Z tests/test_graph_utilities.py::test_calculate_weights_novar PASSED       [ 32%]
2026-03-31T09:09:30.2675089Z tests/test_graph_utilities.py::test_identify_outfalls_no_river PASSED    [ 33%
... [session excerpt truncated to 4500 chars]

Local verify (after agent edits)

Final successful run of the same repro command (truncated if long):

t/lib/python3.12/site-packages (from pyswmm->swmmanywhere==0.2.2.dev9+g3e89854b9.d20260421) (0.14)
Requirement already satisfied: aenum>=3.1.11 in /home/barney/Documents/GitHub/pr-maintainer/.pixi/envs/default/lib/python3.12/site-packages (from pyswmm->swmmanywhere==0.2.2.dev9+g3e89854b9.d20260421) (3.1.11)
Requirement already satisfied: iniconfig>=1.0.1 in /home/barney/Documents/GitHub/pr-maintainer/.pixi/envs/default/lib/python3.12/site-packages (from pytest->swmmanywhere==0.2.2.dev9+g3e89854b9.d20260421) (2.3.0)
Requirement already satisfied: pluggy<2,>=1.5 in /home/barney/Documents/GitHub/pr-maintainer/.pixi/envs/default/lib/python3.12/site-packages (from pytest->swmmanywhere==0.2.2.dev9+g3e89854b9.d20260421) (1.6.0)
Requirement already satisfied: pygments>=2.7.2 in /home/barney/Documents/GitHub/pr-maintainer/.pixi/envs/default/lib/python3.12/site-packages (from pytest->swmmanywhere==0.2.2.dev9+g3e89854b9.d20260421) (2.20.0)
Requirement already satisfied: coverage>=7.10.6 in /home/barney/Documents/GitHub/pr-maintainer/.pixi/envs/default/lib/python3.12/site-packages (from coverage[toml]>=7.10.6->pytest-cov->swmmanywhere==0.2.2.dev9+g3e89854b9.d20260421) (7.10.7)
Requirement already satisfied: cligj>=0.5 in /home/barney/Documents/GitHub/pr-maintainer/.pixi/envs/default/lib/python3.12/site-packages (from rasterio->swmmanywhere==0.2.2.dev9+g3e89854b9.d20260421) (0.7.2)
Requirement already satisfied: click-plugins in /home/barney/Documents/GitHub/pr-maintainer/.pixi/envs/default/lib/python3.12/site-packages (from rasterio->swmmanywhere==0.2.2.dev9+g3e89854b9.d20260421) (1.1.1)
Building wheels for collected packages: swmmanywhere
  Building editable for swmmanywhere (pyproject.toml): started
  Building editable for swmmanywhere (pyproject.toml): finished with status 'done'
  Created wheel for swmmanywhere: filename=swmmanywhere-0.2.2.dev9+g3e89854b9.d20260421-py3-none-any.whl size=4625 sha256=042616e5daaac81209c9303bb56bf4a04d84f77949afccdcad435787cec2401a
  Stored in directory: /tmp/pip-ephem-wheel-cache-a1ft3dx1/wheels/f8/de/f7/a5cafeb68ce98da4e8d5586fe56f8e31791b740a09e7d8667a
Successfully built swmmanywhere
Installing collected packages: swmmanywhere
  Attempting uninstall: swmmanywhere
    Found existing installation: swmmanywhere 0.2.2.dev9+g3e89854b9.d20260421
    Uninstalling swmmanywhere-0.2.2.dev9+g3e89854b9.d20260421:
      Successfully uninstalled swmmanywhere-0.2.2.dev9+g3e89854b9.d20260421
Successfully installed swmmanywhere-0.2.2.dev9+g3e89854b9.d20260421
check for merge conflicts.....................................................Passed
debug statements (python).....................................................Passed
ruff (legacy alias)...........................................................Passed
ruff format...................................................................Passed
mypy..........................................................................Passed
markdownlint..................................................................Passed
Check common misspellings in text files with codespell........................Passed
Apply a consistent format to pyproject.toml...................................Passed

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
ukswmm 0.1.0 requires swmmanywhere<0.2.0,>=0.1.16, but you have swmmanywhere 0.2.2.dev9+g3e89854b9.d20260421 which is incompatible.

Run metadata

  • Agent: provider deepinfra, model Qwen/Qwen3-Next-80B-A3B-Instruct
  • Succeeded on maintainer round: 1 (of automated rounds)

Session debug files under maintainer_state/ are omitted from this branch by default; they are summarised above when relevant.

dependabot Bot and others added 2 commits March 30, 2026 10:30
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@barneydobson
barneydobson deleted the pr-maintainer/pr-459-fix-1776768710 branch April 21, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant