MAINT: Configure and enable ty typechecking #2356
ci.yml
on: pull_request
should run ci
7s
Matrix: integration-test
Matrix: unit-test
build-and-upload-nightly-parcels
1m 16s
merge-test-artifacts
0s
Annotations
10 errors and 11 warnings
|
ty (invalid-argument-type):
src/parcels/_core/field.py#L277
src/parcels/_core/field.py:277:33: invalid-argument-type: Argument to function `vectorfield_repr` is incorrect: Expected `FieldSet`, found `Self@__repr__`
src/parcels/_reprs.py:50:5: info: Function defined here
src/parcels/_reprs.py:50:22: Parameter declared here
info: rule `invalid-argument-type` is enabled by default
|
|
ty (invalid-argument-type):
src/parcels/_core/field.py#L273
src/parcels/_core/field.py:273:40: invalid-argument-type: Argument to function `assert_same_function_signature` is incorrect: Expected `FunctionType`, found `(...) -> Unknown`
src/parcels/_python.py:23:5: info: Function defined here
src/parcels/_python.py:23:36: Parameter declared here
info: rule `invalid-argument-type` is enabled by default
|
|
ty (invalid-argument-type):
src/parcels/_core/field.py#L264
src/parcels/_core/field.py:264:40: invalid-argument-type: Argument to function `_assert_same_time_interval` is incorrect: Expected `list[Field]`, found `tuple[Field, Field, Field]`
src/parcels/_core/field.py:451:5: info: Function defined here
src/parcels/_core/field.py:451:32: Parameter declared here
info: rule `invalid-argument-type` is enabled by default
|
|
ty (invalid-argument-type):
src/parcels/_core/field.py#L262
src/parcels/_core/field.py:262:40: invalid-argument-type: Argument to function `_assert_same_time_interval` is incorrect: Expected `list[Field]`, found `tuple[Field, Field]`
src/parcels/_core/field.py:451:5: info: Function defined here
src/parcels/_core/field.py:451:32: Parameter declared here
info: rule `invalid-argument-type` is enabled by default
|
|
ty (invalid-argument-type):
src/parcels/_core/field.py#L176
src/parcels/_core/field.py:176:40: invalid-argument-type: Argument to function `assert_same_function_signature` is incorrect: Expected `FunctionType`, found `(...) -> Unknown`
src/parcels/_python.py:23:5: info: Function defined here
src/parcels/_python.py:23:36: 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
|
|
ty (invalid-argument-type):
src/parcels/_core/field.py#L132
src/parcels/_core/field.py:132:40: invalid-argument-type: Argument to function `assert_same_function_signature` is incorrect: Expected `FunctionType`, found `(...) -> Unknown`
src/parcels/_python.py:23:5: info: Function defined here
src/parcels/_python.py:23:36: Parameter declared here
info: rule `invalid-argument-type` is enabled by default
|
|
ty (invalid-argument-type):
src/parcels/_core/field.py#L103
src/parcels/_core/field.py:103:46: invalid-argument-type: Argument to function `_assert_compatible_combination` is incorrect: Expected `Grid | XGrid`, found `UxGrid | XGrid`
info: Element `UxGrid` of this union is not assignable to `Grid | XGrid`
src/parcels/_core/field.py:431:5: info: Function defined here
src/parcels/_core/field.py:431:73: Parameter declared here
info: rule `invalid-argument-type` is enabled by default
|
|
ty (redundant-cast):
src/parcels/_core/xgrid.py#L383
src/parcels/_core/xgrid.py:383:24: redundant-cast: Value is already of type `Literal["X", "Y", "Z"]`
info: rule `redundant-cast` is enabled by default
|
|
ty (unused-type-ignore-comment):
src/parcels/_core/utils/interpolation.py#L8
src/parcels/_core/utils/interpolation.py:8:15: unused-type-ignore-comment: Unused blanket `type: ignore` directive
help: Remove the unused suppression comment
|
|
ty (unused-type-ignore-comment):
src/parcels/_core/particlefile.py#L237
src/parcels/_core/particlefile.py:237:59: unused-type-ignore-comment: Unused blanket `type: ignore` directive
help: Remove the unused suppression comment
|
|
ty (unused-type-ignore-comment):
src/parcels/_core/particlefile.py#L224
src/parcels/_core/particlefile.py:224:114: unused-type-ignore-comment: Unused blanket `type: ignore` directive
help: Remove the unused suppression comment
|
|
ty (unused-type-ignore-comment):
src/parcels/_core/particlefile.py#L202
src/parcels/_core/particlefile.py:202:55: unused-type-ignore-comment: Unused blanket `type: ignore` directive
help: Remove the unused suppression comment
|
|
ty (unused-type-ignore-comment):
src/parcels/_core/particlefile.py#L200
src/parcels/_core/particlefile.py:200:59: unused-type-ignore-comment: Unused blanket `type: ignore` directive
help: Remove the unused suppression comment
|
|
ty (unused-type-ignore-comment):
src/parcels/_core/particlefile.py#L199
src/parcels/_core/particlefile.py:199:79: unused-type-ignore-comment: Unused blanket `type: ignore` directive
help: Remove the unused suppression comment
|
|
ty (unused-type-ignore-comment):
src/parcels/_compat.py#L17
src/parcels/_compat.py:17:41: unused-type-ignore-comment: Unused blanket `type: ignore` directive
help: Remove the unused suppression comment
|
|
Unit tests: ubuntu | pixi run -e test-py313 tests
Cache save failed.
|
|
Unit tests: ubuntu | pixi run -e test-minimum tests
Cache save failed.
|
|
Unit tests: ubuntu | pixi run -e test-py311 tests
Cache save failed.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
Unittest report ubuntu-test
|
25.2 KB |
sha256:c1911391df33b07052e6cb2fe62930f2c42111e880bf027452e6f009342e4c09
|
|
|
Unittest report ubuntu-test-minimum
|
25.2 KB |
sha256:3ec241ba95db7f452f05bcc32f68baa80b038f0155c1b76ed843905a103631d4
|
|
|
Unittest report ubuntu-test-py311
|
25.3 KB |
sha256:c8d1d7aa9f74a7505639df580a5b7c2aa464d4920ae174684863124720ea6395
|
|
|
Unittest report ubuntu-test-py313
|
25.4 KB |
sha256:99e25f58ff66f6166a0114fb2032475fe00c78c68e3b1c2463d677d5a9c3c472
|
|
|
Unittest report windows-test
|
25.4 KB |
sha256:ee0583b70c85bb741952c473dcaffa70dd65315240b417e04693977196b805b5
|
|
|
pixi-lock
|
234 KB |
sha256:be60f047214e0a7315a35903fcc458a98cea44bc0d56f06abe808ac9ea88a9b7
|
|