Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Simplify models, fix typing #78

Simplify models, fix typing

Simplify models, fix typing #78

Triggered via pull request January 7, 2025 18:18
Status Failure
Total duration 33s
Artifacts

code-quality.yml

on: pull_request
Check code formatting, typecheck the code
25s
Check code formatting, typecheck the code
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Check code formatting, typecheck the code: src/betterproto2_compiler/compile/importing.py#L8
Import "betterproto2.lib.google" could not be resolved (reportMissingImports)
Check code formatting, typecheck the code: src/betterproto2_compiler/lib/google/protobuf/compiler/__init__.py#L22
Import "betterproto2" could not be resolved (reportMissingImports)
Check code formatting, typecheck the code: src/betterproto2_compiler/lib/google/protobuf/compiler/__init__.py#L229
Import "betterproto2.lib.google.protobuf" could not be resolved (reportMissingImports)
Check code formatting, typecheck the code: src/betterproto2_compiler/plugin/models.py#L35
Import "betterproto2" could not be resolved (reportMissingImports)
Check code formatting, typecheck the code: src/betterproto2_compiler/plugin/models.py#L36
Import "betterproto2" could not be resolved (reportMissingImports)
Check code formatting, typecheck the code: src/betterproto2_compiler/plugin/models.py#L37
Import "betterproto2.lib.google.protobuf" could not be resolved (reportMissingImports)
Check code formatting, typecheck the code: src/betterproto2_compiler/plugin/parser.py#L5
Import "betterproto2.lib.google.protobuf" could not be resolved (reportMissingImports)
Check code formatting, typecheck the code: tests/generate.py#L139
Argument of type "int | None" cannot be assigned to parameter "arg1" of type "SupportsRichComparisonT@max" in function "max"   Type "int | None" is not assignable to type "SupportsRichComparison"     Type "int | None" is not assignable to type "SupportsRichComparison"       Type "None" is not assignable to type "SupportsRichComparison"         "None" is incompatible with protocol "SupportsDunderLT[Any]"           "__lt__" is not present         "None" is incompatible with protocol "SupportsDunderGT[Any]"           "__gt__" is not present (reportArgumentType)
Check code formatting, typecheck the code: tests/generate.py#L139
Argument of type "int | None" cannot be assigned to parameter "arg2" of type "SupportsRichComparisonT@max" in function "max"   Type "int | None" is not assignable to type "SupportsRichComparison"     Type "int | None" is not assignable to type "SupportsRichComparison"       Type "None" is not assignable to type "SupportsRichComparison"         "None" is incompatible with protocol "SupportsDunderLT[Any]"           "__lt__" is not present         "None" is incompatible with protocol "SupportsDunderGT[Any]"           "__gt__" is not present (reportArgumentType)
Check code formatting, typecheck the code: tests/generate.py#L139
Argument of type "int | None" cannot be assigned to parameter "_args" of type "SupportsRichComparisonT@max" in function "max"   Type "int | None" is not assignable to type "SupportsRichComparison"     Type "int | None" is not assignable to type "SupportsRichComparison"       Type "None" is not assignable to type "SupportsRichComparison"         "None" is incompatible with protocol "SupportsDunderLT[Any]"           "__lt__" is not present         "None" is incompatible with protocol "SupportsDunderGT[Any]"           "__gt__" is not present (reportArgumentType)
Check code formatting, typecheck the code
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check code formatting, typecheck the code
The `python-version` input is not set. The version of Python currently in `PATH` will be used.