diff --git a/pyproject.toml b/pyproject.toml index fa5102a..7fd7064 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,10 +86,10 @@ testpaths = [ "docs" ] -[tool.ruff] -select = ["I", "E", "D"] +[tool.ruff.lint] +select = ["I", "E", "F"] -[tool.ruff.isort] +[tool.ruff.lint.isort] relative-imports-order = "closest-to-furthest" [tool.rye] diff --git a/src/pinttr/__init__.py b/src/pinttr/__init__.py index f801a63..07ac076 100644 --- a/src/pinttr/__init__.py +++ b/src/pinttr/__init__.py @@ -13,7 +13,7 @@ from ._next_gen import field # Package metadata -from ._version import version as __version__ +from ._version import version as __version__ # noqa: F401 # Other definitions ib = attrib @@ -30,4 +30,5 @@ "set_unit_registry", "util", "validators", + "__version__", ] diff --git a/src/pinttr/_next_gen.py b/src/pinttr/_next_gen.py index 8248f51..26a24d6 100644 --- a/src/pinttr/_next_gen.py +++ b/src/pinttr/_next_gen.py @@ -1,6 +1,7 @@ """ APIs in the style of attrs's next-generation APIs. """ + from typing import Union import pint