Skip to content

Static code validation for python projects failing #1460

@pravindahal

Description

@pravindahal

Eg: https://github.com/coopnorge/python-bigquery-extras/actions/runs/6920199806/job/18824420755

poetry run mypy --show-error-codes --show-error-context --pretty ./src ./tests ./docs
Warning: Found deprecated key 'default' or 'secondary' in pyproject.toml configuration for source engineering-pypi. Please provide the key 'priority' instead. Accepted values are: 'default', 'primary', 'secondary', 'supplemental', 'explicit'.
Warning: Found deprecated priority 'secondary' for source 'engineering-pypi' in pyproject.toml. Consider changing the priority to one of the non-deprecated values: 'default', 'primary', 'supplemental', 'explicit'.
Warning: In a future version of Poetry, PyPI will be disabled automatically if at least one custom source is configured with another priority than 'explicit'. In order to avoid a breaking change and make your pyproject.toml forward compatible, add PyPI explicitly via 'poetry source add pypi'. By the way, this has the advantage that you can set the priority of PyPI as with any other source.
src/coopnorge/extras/bigquery_v1beta1/_base.py: note: In class "BigQueryBase":
src/coopnorge/extras/bigquery_v1beta1/_base.py:7: error: Class cannot subclass
"AvroBaseModel" (has type "Any")  [misc]
    class BigQueryBase(dataclasses_avroschema.avrodantic.AvroBaseModel):
                       ^
Found 1 error in 1 file (checked 7 source files)
make: *** [Makefile:[42](https://github.com/coopnorge/python-bigquery-extras/actions/runs/6920199806/job/18824420755#step:9:43): validate-static] Error 1
Error: Process completed with exit code 2.

The culprit was status check wrongly reported as successful even though the build skipped for this dependabot update: https://github.com/coopnorge/python-bigquery-extras/pull/282.

Metadata

Metadata

Assignees

No one assigned

    Labels

    technical debtIssue relates to technical debt

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions