From d3512d6889a31b0570919d64314602cbbf78bfde Mon Sep 17 00:00:00 2001 From: Lukas Plank Date: Sat, 3 Aug 2024 12:55:11 +0200 Subject: [PATCH] chore: Replace general Ruff F401 exclusion with per-line-ignore F401 ignores should be per-line and explicit rather than per-file and implicit. Closes: #34 --- pyproject.toml | 4 ---- rdfproxy/__init__.py | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 271d67f..d45a05c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,10 +26,6 @@ fastapi = {extras = ["standard"], version = "^0.112.1"} requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" - -[tool.ruff] -lint.ignore = ["F401"] - [tool.deptry.package_module_name_map] sparqlwrapper = "SPARQLWrapper" diff --git a/rdfproxy/__init__.py b/rdfproxy/__init__.py index 392f320..44d3fb9 100644 --- a/rdfproxy/__init__.py +++ b/rdfproxy/__init__.py @@ -1,6 +1,6 @@ -from rdfproxy.adapter import SPARQLModelAdapter -from rdfproxy.utils._types import _TModelConstructorCallable, _TModelInstance +from rdfproxy.adapter import SPARQLModelAdapter # noqa: F401 +from rdfproxy.utils._types import _TModelConstructorCallable, _TModelInstance # noqa: F401 from rdfproxy.utils.utils import ( - get_bindings_from_query_result, - instantiate_model_from_kwargs, + get_bindings_from_query_result, # noqa: F401 + instantiate_model_from_kwargs, # noqa: F401 )