Skip to content

Commit

Permalink
chore(init): ignore E402 in rdfproxy.__init__
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lu-pl committed Nov 30, 2024
1 parent 5c1e8fc commit ba51212
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions rdfproxy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
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

0 comments on commit ba51212

Please sign in to comment.