Improve typechecking (#2541) #2361
ci.yml
on: push
should run ci
7s
Matrix: integration-test
Matrix: unit-test
build-and-upload-nightly-parcels
1m 26s
merge-test-artifacts
Annotations
11 errors and 9 warnings
|
ty (invalid-return-type):
src/parcels/_core/index_search.py#L47
src/parcels/_core/index_search.py:47:16: invalid-return-type: Return type does not match returned value: expected `tuple[int, int]`, found `tuple[Unknown, ndarray[tuple[Any, ...], dtype[Any]]]`
src/parcels/_core/index_search.py:24:6: Expected `tuple[int, int]` because of return type
info: rule `invalid-return-type` is enabled by default
|
|
ty (not-iterable):
src/parcels/_core/fieldset.py#L484
src/parcels/_core/fieldset.py:484:26: not-iterable: Object of type `None` is not iterable
info: It doesn't have an `__iter__` method or a `__getitem__` method
info: rule `not-iterable` is enabled by default
|
|
ty (invalid-assignment):
src/parcels/_core/fieldset.py#L484
src/parcels/_core/fieldset.py:484:5: invalid-assignment: Too many values to unpack: Expected 2
src/parcels/_core/fieldset.py:484:26: Got 3
info: rule `invalid-assignment` is enabled by default
|
|
ty (invalid-assignment):
src/parcels/_core/fieldset.py#L423
src/parcels/_core/fieldset.py:423:22: invalid-assignment: Object of type `Dataset` is not assignable to `UxDataset`
src/parcels/_core/fieldset.py:423:17: Declared type `UxDataset`
info: rule `invalid-assignment` is enabled by default
|
|
ty (invalid-assignment):
src/parcels/_core/fieldset.py#L404
src/parcels/_core/fieldset.py:404:22: invalid-assignment: Object of type `Dataset` is not assignable to `UxDataset`
src/parcels/_core/fieldset.py:404:17: Declared type `UxDataset`
info: rule `invalid-assignment` is enabled by default
|
|
ty (unresolved-attribute):
src/parcels/_core/fieldset.py#L357
src/parcels/_core/fieldset.py:357:175: unresolved-attribute: Attribute `left` is not defined on `None` in union `Unknown | TimeInterval | None`
info: rule `unresolved-attribute` is enabled by default
|
|
ty (invalid-argument-type):
src/parcels/_core/fieldset.py#L210
src/parcels/_core/fieldset.py:210:34: invalid-argument-type: Argument to bound method `__init__` is incorrect: Expected `UxDataArray`, found `DataArray`
src/parcels/_core/uxgrid.py:21:9: info: Method defined here
src/parcels/_core/uxgrid.py:21:44: Parameter declared here
info: rule `invalid-argument-type` is enabled by default
|
|
ty (unresolved-attribute):
src/parcels/_core/field.py#L161
src/parcels/_core/field.py:161:20: unresolved-attribute: Attribute `zdim` is not defined on `UxGrid` in union `Unknown | UxGrid | XGrid`
info: rule `unresolved-attribute` is enabled by default
|
|
ty (unresolved-attribute):
src/parcels/_core/field.py#L154
src/parcels/_core/field.py:154:20: unresolved-attribute: Attribute `ydim` is not defined on `UxGrid` in union `Unknown | UxGrid | XGrid`
info: rule `unresolved-attribute` is enabled by default
|
|
ty (unresolved-attribute):
src/parcels/_core/field.py#L147
src/parcels/_core/field.py:147:20: unresolved-attribute: Attribute `xdim` is not defined on `UxGrid` in union `Unknown | UxGrid | XGrid`
info: rule `unresolved-attribute` is enabled by default
|
|
build-and-upload-nightly-parcels
Process completed with exit code 127.
|
|
ty (redundant-cast):
src/parcels/_core/xgrid.py#L379
src/parcels/_core/xgrid.py:379:24: redundant-cast: Value is already of type `Literal["X", "Y", "Z"]`
info: rule `redundant-cast` is enabled by default
|
|
TypeChecking: pixi run typing
Failed to save: Unable to reserve cache with key pixi-linux-64-088ab6b4e90c9d3d784ad57d8ff4a711a76f234685f5da50384a1209e6568476, another job may be creating this cache.
|
|
build-and-upload-nightly-parcels
Failed to save: Unable to reserve cache with key pixi-linux-64-088ab6b4e90c9d3d784ad57d8ff4a711a76f234685f5da50384a1209e6568476, another job may be creating this cache.
|
|
Unit tests: ubuntu | pixi run -e test tests
Failed to save: Unable to reserve cache with key pixi-linux-64-088ab6b4e90c9d3d784ad57d8ff4a711a76f234685f5da50384a1209e6568476, another job may be creating this cache.
|
|
Unit tests: ubuntu | pixi run -e test-minimum tests
Cache save failed.
|
|
Unit tests: ubuntu | pixi run -e test-py311 tests
Cache save failed.
|
|
Unit tests: ubuntu | pixi run -e test-py311 tests
Failed to save: Unable to reserve cache with key pixi-linux-64-088ab6b4e90c9d3d784ad57d8ff4a711a76f234685f5da50384a1209e6568476, another job may be creating this cache.
|
|
Unit tests: ubuntu | pixi run -e test-py313 tests
Cache save failed.
|
|
Unit tests: ubuntu | pixi run -e test-py313 tests
Failed to save: Unable to reserve cache with key pixi-linux-64-088ab6b4e90c9d3d784ad57d8ff4a711a76f234685f5da50384a1209e6568476, another job may be creating this cache.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
Unittest report ubuntu-test
|
25 KB |
sha256:6419f52586ad403dcbc85698738c2f42ee29bd1614b10752fc80f874289719ea
|
|
|
Unittest report ubuntu-test-minimum
|
25.2 KB |
sha256:0df0a9950987579960cbc2aa51a8b03a43cd889ea453e0f0d0f5409351b06724
|
|
|
Unittest report ubuntu-test-py311
|
25.3 KB |
sha256:1ebc1c05404e857015945954a5da74bca5ac91ce604f331e84c28db887ec70c1
|
|
|
Unittest report ubuntu-test-py313
|
25.3 KB |
sha256:cbd1546a47b3537cb6281edd7c14fbf7e2dd0f10d15f3e5a0df2a9518db0e209
|
|
|
Unittest report windows-test
|
25.4 KB |
sha256:2c7686762a206ab1a0dc2eb07cfdef5b2793650b4c1e20c9c5fd62211ff61700
|
|
|
pixi-lock
|
234 KB |
sha256:1e11d0f00ae82350f320011cf8e543b25774c8cff63d59889d84bb109c566016
|
|