Skip to content

[Minor] fix future regressor (#1585) #2430

[Minor] fix future regressor (#1585)

[Minor] fix future regressor (#1585) #2430

Triggered via push June 21, 2024 05:47
Status Failure
Total duration 2m 4s
Artifacts

linters.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 8 warnings
flake8: neuralprophet/configure.py#L8
'typing.Iterable' imported but unused
flake8: neuralprophet/configure.py#L16
'neuralprophet.utils' imported but unused
flake8: neuralprophet/hdays_utils.py#L44
expected 2 blank lines, found 1
flake8: neuralprophet/utils.py#L8
'typing.Iterable' imported but unused
flake8: neuralprophet/utils.py#L16
'neuralprophet.hdays_utils.get_country_holidays' imported but unused
flake8
The process '/opt/hostedtoolcache/Python/3.12.4/x64/bin/flake8' failed with exit code 1
ruff
Process completed with exit code 1.
black
Process completed with exit code 1.
pyright: neuralprophet/__init__.py#L15
"utilities" is not a known attribute of module "pytorch_lightning" (reportAttributeAccessIssue)
pyright: neuralprophet/configure.py#L308
Operator "<" not supported for "None" (reportOptionalOperand)
pyright: neuralprophet/configure.py#L357
No overloads for "__init__" match the provided arguments (reportCallIssue)
pyright: neuralprophet/configure.py#L358
Argument of type "dict[str, Season]" cannot be assigned to parameter "iterable" of type "Iterable[list[bytes]]" in function "__init__" (reportArgumentType)
pyright: neuralprophet/configure.py#L363
Argument of type "SeasonGlobalLocalMode | Literal['auto']" cannot be assigned to parameter "global_local" of type "SeasonGlobalLocalMode" in function "__init__" (reportArgumentType)
pyright: neuralprophet/configure.py#L374
Argument of type "SeasonGlobalLocalMode | Literal['auto']" cannot be assigned to parameter "global_local" of type "SeasonGlobalLocalMode" in function "__init__" (reportArgumentType)
pyright: neuralprophet/configure.py#L385
Argument of type "SeasonGlobalLocalMode | Literal['auto']" cannot be assigned to parameter "global_local" of type "SeasonGlobalLocalMode" in function "__init__" (reportArgumentType)
pyright: neuralprophet/configure.py#L393
Operator "<" not supported for "None" (reportOptionalOperand)
pyright: neuralprophet/configure.py#L413
Argument of type "str" cannot be assigned to parameter "global_local" of type "SeasonGlobalLocalMode" in function "__init__"   Type "str" is incompatible with type "SeasonGlobalLocalMode"     "str" is incompatible with type "Literal['global']"     "str" is incompatible with type "Literal['local']"     "str" is incompatible with type "Literal['glocal']" (reportArgumentType)
pyright: neuralprophet/configure.py#L489
Cannot assign to attribute "regressors" for class "ConfigFutureRegressors*"   "None" is incompatible with "OrderedDict[Unknown, Unknown]" (reportAttributeAccessIssue)
flake8
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, liskin/gh-problem-matcher-wrap@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
flake8: neuralprophet/utils.py#L378
blank line contains whitespace
ruff
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
isort
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, liskin/gh-problem-matcher-wrap@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
black
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
pyright
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
pyright: neuralprophet/forecaster.py#L1105
Expression value is unused (reportUnusedExpression)
pyright: neuralprophet/uncertainty.py#L287
Expression value is unused (reportUnusedExpression)