From 42661293a89ba8bb454c4b8dd125122107a2ec8a Mon Sep 17 00:00:00 2001 From: Lukas Plank Date: Sat, 30 Nov 2024 19:46:26 +0100 Subject: [PATCH] chore(init): ignore E402 in rdfproxy.__init__ Package-wide beartype runtime checking requires 'beartype_this_package' to run *before* all other __init__ imports. This is not PEP-8 compliant, see https://peps.python.org/pep-0008/#imports. --- rdfproxy/__init__.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/rdfproxy/__init__.py b/rdfproxy/__init__.py index b29be60..27a2f4a 100644 --- a/rdfproxy/__init__.py +++ b/rdfproxy/__init__.py @@ -1,9 +1,8 @@ from beartype.claw import beartype_this_package -beartype_this_package() - -from rdfproxy.adapter import SPARQLModelAdapter # noqa: F401 -from rdfproxy.mapper import ModelBindingsMapper # noqa: F401 -from rdfproxy.utils._types import SPARQLBinding # noqa: F401 -from rdfproxy.utils.models import Page # noqa: F401 +beartype_this_package() +from rdfproxy.adapter import SPARQLModelAdapter # noqa: F401, E402 +from rdfproxy.mapper import ModelBindingsMapper # noqa: F401, E402 +from rdfproxy.utils._types import SPARQLBinding # noqa: F401, E402 +from rdfproxy.utils.models import Page # noqa: F401, E402