Skip to content

Ruff upgrade & additional lint rules #2481

@yaugenst-flex

Description

@yaugenst-flex

Our ruff version is lagging significantly behind, so it's due for an update. We should also review existing linting rules.
There are also at least two more rules that we should enable:

  • TID252: Only allow relative imports from siblings. Maybe it's just me but I find the following very hard to deal with:
    from ....exceptions import AdjointError
    from ...core.s3utils import download_file, upload_file
    from ...core.types import PayType
    We'll exclude this rule in tests.
  • UP006: Replace typing generics with standard library types when available. We have dropped support for Python 3.8, so it's time to do that.

Metadata

Metadata

Assignees

Labels

2.9will go into version 2.9.*

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