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.
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:UP006: Replacetypinggenerics with standard library types when available. We have dropped support for Python 3.8, so it's time to do that.