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 4b6ce40
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions rdfproxy/__init__.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4b6ce40

Please sign in to comment.