Feature/4908 json registration backend #12045
code_quality.yml
on: pull_request
Check import sorting
45s
Check code formatting with black
53s
Code style (flake8)
50s
Check for model changes not present in the migrations or default_admin_index fixture
1m 27s
Lint dependencies
3s
Type checking (Pyright)
34s
Annotations
11 errors and 6 warnings
Type checking (Pyright):
src/openforms/registrations/contrib/json_dump/plugin.py#L34
Method "register_submission" overrides class "BasePlugin" in an incompatible manner
Return type mismatch: base method returns type "dict[Unknown, Unknown] | None", override returns type "JSONDumpResult"
Type "JSONDumpResult" is incompatible with type "dict[Unknown, Unknown] | None"
"JSONDumpResult" is incompatible with "dict[Unknown, Unknown]"
"JSONDumpResult" is incompatible with "None" (reportIncompatibleMethodOverride)
|
Type checking (Pyright):
src/openforms/registrations/contrib/json_dump/plugin.py#L124
Argument of type "list[dict[str, Unknown]]" cannot be assigned to parameter "value" of type "JSONValue" in function "__setitem__"
Type "list[dict[str, Unknown]]" is incompatible with type "JSONValue"
"list[dict[str, Unknown]]" is incompatible with "str"
"list[dict[str, Unknown]]" is incompatible with "int"
"list[dict[str, Unknown]]" is incompatible with "float"
"list[dict[str, Unknown]]" is incompatible with "bool"
"list[dict[str, Unknown]]" is incompatible with "None"
"list[dict[str, Unknown]]" is incompatible with "dict[str, JSONValue]"
"list[dict[str, Unknown]]" is incompatible with "list[JSONValue]" (reportArgumentType)
|
Type checking (Pyright):
src/openforms/registrations/contrib/json_dump/tests/test_backend.py#L55
Cannot access attribute "submissionstep_set" for class "Submission"
Attribute "submissionstep_set" is unknown (reportAttributeAccessIssue)
|
Type checking (Pyright):
src/openforms/registrations/contrib/json_dump/tests/test_backend.py#L100
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Type checking (Pyright):
src/openforms/registrations/contrib/json_dump/tests/test_backend.py#L104
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Type checking (Pyright):
src/openforms/registrations/contrib/json_dump/tests/test_backend.py#L155
Cannot access attribute "submissionstep_set" for class "Submission"
Attribute "submissionstep_set" is unknown (reportAttributeAccessIssue)
|
Type checking (Pyright):
src/openforms/registrations/contrib/json_dump/tests/test_backend.py#L166
Cannot access attribute "submissionstep_set" for class "Submission"
Attribute "submissionstep_set" is unknown (reportAttributeAccessIssue)
|
Type checking (Pyright):
src/openforms/registrations/contrib/json_dump/tests/test_backend.py#L196
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Type checking (Pyright):
src/openforms/registrations/contrib/json_dump/tests/test_backend.py#L218
Cannot access attribute "submissionstep_set" for class "Submission"
Attribute "submissionstep_set" is unknown (reportAttributeAccessIssue)
|
Type checking (Pyright):
src/openforms/registrations/contrib/json_dump/tests/test_backend.py#L237
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Check code formatting with black
Process completed with exit code 1.
|
Lint dependencies
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Type checking (Pyright)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Check import sorting
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Code style (flake8)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Check code formatting with black
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Check for model changes not present in the migrations or default_admin_index fixture
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|