MAINT: Configure and enable ty typechecking (#2540) #2359
ci.yml
on: push
should run ci
7s
Matrix: integration-test
Matrix: unit-test
build-and-upload-nightly-parcels
2m 54s
merge-test-artifacts
0s
Annotations
11 errors and 15 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
|
|
build-and-upload-nightly-parcels
Process completed with exit code 127.
|
|
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
|
|
TypeChecking: pixi run typing
Failed to save: Unable to reserve cache with key pixi-linux-64-c630a735148f06dc1b28063de23536e68f19533ec4e9757eef2b6f37350e08a6, 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-c630a735148f06dc1b28063de23536e68f19533ec4e9757eef2b6f37350e08a6, another job may be creating this cache.
|
|
Unit tests: ubuntu | pixi run -e test-py311 tests
Cache save failed.
|
|
Unit tests: ubuntu | pixi run -e test-minimum tests
Cache save failed.
|
|
Unit tests: ubuntu | pixi run -e test-minimum tests
Failed to save: Unable to reserve cache with key pixi-linux-64-c630a735148f06dc1b28063de23536e68f19533ec4e9757eef2b6f37350e08a6, 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-c630a735148f06dc1b28063de23536e68f19533ec4e9757eef2b6f37350e08a6, another job may be creating this cache.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
Unittest report ubuntu-test
|
25.2 KB |
sha256:2dbd8cf0a8a00d470e003594a77db4da7f3cfd361beaa5debe2ae00cb1096264
|
|
|
Unittest report ubuntu-test-minimum
|
25.2 KB |
sha256:8fc83d64d8c32d41caacc02db46f4116510374ef3071c59bdd267565835bf293
|
|
|
Unittest report ubuntu-test-py311
|
25.4 KB |
sha256:3c6b30f2b87849f8bfa5bc3481e6cf60de01dbb293bfe8933537f99b8b908f79
|
|
|
Unittest report ubuntu-test-py313
|
25.3 KB |
sha256:69e99bea13ac2f11e4a259b02c20304db34ca05f3c14e28a01da521d45170d2d
|
|
|
Unittest report windows-test
|
25.4 KB |
sha256:57ec46053345648f88e450d17e16dc5d8c921d36c9547d683c6095b14e269399
|
|
|
pixi-lock
|
234 KB |
sha256:5030caa7e4503edcdef024fef9ab951652e35f65721a4467f46c2c44947c3af4
|
|