MAINT: Configure and enable ty typechecking #2358
ci.yml
on: pull_request
should run ci
7s
Matrix: integration-test
Matrix: unit-test
build-and-upload-nightly-parcels
1m 26s
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-py311 tests
Cache save failed.
|
|
Unit tests: ubuntu | pixi run -e test-py313 tests
Cache save failed.
|
|
Unit tests: ubuntu | pixi run -e test-minimum tests
Cache save failed.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
Unittest report ubuntu-test
|
25.1 KB |
sha256:1a2e805f1c6194d2fa8aa4a0b985fabeac74ce1c235fb8218751ee42c36bd4a0
|
|
|
Unittest report ubuntu-test-minimum
|
25.2 KB |
sha256:0099ec488a419a6ba5c60a3bed3dc89afb3687614187b5b40cf876589425bbb0
|
|
|
Unittest report ubuntu-test-py311
|
25.4 KB |
sha256:7962224012d35453e47dc3564306f82f4de8bf939010d75525b096eff93b95f1
|
|
|
Unittest report ubuntu-test-py313
|
25.3 KB |
sha256:da596367681b796f51cd7512ebdfa63ddb2405ccbf7ac7fb78526311014b82e2
|
|
|
Unittest report windows-test
|
25.5 KB |
sha256:0494867ebc0dc431bb383464999226c2c48280608958a29c42d223e584b96f2f
|
|
|
pixi-lock
|
234 KB |
sha256:be60f047214e0a7315a35903fcc458a98cea44bc0d56f06abe808ac9ea88a9b7
|
|