MAINT: Configure and enable ty typechecking #2357
ci.yml
on: pull_request
should run ci
7s
Matrix: integration-test
Matrix: unit-test
build-and-upload-nightly-parcels
1m 24s
merge-test-artifacts
Annotations
22 errors and 16 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
Canceling since a higher priority waiting request for branch-ty exists
|
|
Unit tests: ubuntu | pixi run -e test-py313 tests
Canceling since a higher priority waiting request for branch-ty exists
|
|
Unit tests: ubuntu | pixi run -e test-py313 tests
The operation was canceled.
|
|
Unit tests: ubuntu | pixi run -e test-minimum tests
Canceling since a higher priority waiting request for branch-ty exists
|
|
Unit tests: ubuntu | pixi run -e test-minimum tests
The operation was canceled.
|
|
Unit tests: ubuntu | pixi run -e test-py311 tests
Canceling since a higher priority waiting request for branch-ty exists
|
|
Unit tests: ubuntu | pixi run -e test-py311 tests
The operation was canceled.
|
|
Unit tests: windows | pixi run -e test tests
Canceling since a higher priority waiting request for branch-ty exists
|
|
Unit tests: windows | pixi run -e test tests
The operation was canceled.
|
|
Unit tests: ubuntu | pixi run -e test tests
Canceling since a higher priority waiting request for branch-ty exists
|
|
Unit tests: ubuntu | pixi run -e test tests
The operation was canceled.
|
|
ci
Canceling since a higher priority waiting request for branch-ty exists
|
|
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
No files were found with the provided path: ubuntu_test-py313_unit_test_report.html. No artifacts will be uploaded.
|
|
Unit tests: ubuntu | pixi run -e test-minimum tests
No files were found with the provided path: ubuntu_test-minimum_unit_test_report.html. No artifacts will be uploaded.
|
|
Unit tests: ubuntu | pixi run -e test-minimum tests
Cache save failed.
|
|
Unit tests: ubuntu | pixi run -e test-py311 tests
No files were found with the provided path: ubuntu_test-py311_unit_test_report.html. No artifacts will be uploaded.
|
|
Unit tests: ubuntu | pixi run -e test-py311 tests
Cache save failed.
|
|
Unit tests: windows | pixi run -e test tests
No files were found with the provided path: windows_test_unit_test_report.html. No artifacts will be uploaded.
|
|
Unit tests: ubuntu | pixi run -e test tests
No files were found with the provided path: ubuntu_test_unit_test_report.html. No artifacts will be uploaded.
|
|
Unit tests: ubuntu | pixi run -e test tests
Cache save failed.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
pixi-lock
|
234 KB |
sha256:be60f047214e0a7315a35903fcc458a98cea44bc0d56f06abe808ac9ea88a9b7
|
|