From 3e579c1ea5acd96a45e47ac3bb466c307b42ebec Mon Sep 17 00:00:00 2001 From: Tijmen Baarda Date: Thu, 19 Dec 2024 15:28:21 +0100 Subject: [PATCH] Fix errors detected by ruff --- edpop_explorer/cerl.py | 3 +-- edpop_explorer/readers/sbtireader.py | 2 +- edpop_explorer/readers/stcn.py | 8 ++------ tests/test_field.py | 1 - 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/edpop_explorer/cerl.py b/edpop_explorer/cerl.py index 61dbf01..ecdc00f 100644 --- a/edpop_explorer/cerl.py +++ b/edpop_explorer/cerl.py @@ -1,11 +1,10 @@ from abc import abstractmethod -from rdflib import URIRef import requests from typing import List, Dict, Optional from edpop_explorer import ( - Reader, Record, ReaderError, BiographicalRecord, Field, BIOGRAPHICAL + Reader, Record, ReaderError ) diff --git a/edpop_explorer/readers/sbtireader.py b/edpop_explorer/readers/sbtireader.py index f37c692..a23e6ef 100644 --- a/edpop_explorer/readers/sbtireader.py +++ b/edpop_explorer/readers/sbtireader.py @@ -1,5 +1,5 @@ from rdflib import URIRef -from typing import List, Dict, Optional +from typing import Dict, Optional from edpop_explorer import ( BiographicalRecord, Field, BIOGRAPHICAL diff --git a/edpop_explorer/readers/stcn.py b/edpop_explorer/readers/stcn.py index fa3f5fe..31499a3 100644 --- a/edpop_explorer/readers/stcn.py +++ b/edpop_explorer/readers/stcn.py @@ -1,14 +1,10 @@ -from rdflib import Graph, Namespace, URIRef -from rdflib.term import Node -from typing import List, Optional, Tuple +from rdflib import URIRef +from typing import List, Optional from edpop_explorer import Field, BIBLIOGRAPHICAL, BibliographicalRecord, LocationField, BIOGRAPHICAL, \ BiographicalRecord from edpop_explorer.cerl import CERLReader from edpop_explorer.fields import LanguageField, ContributorField -from edpop_explorer.sparqlreader import ( - SparqlReader, BibliographicalRDFRecord -) def _remove_markup(input_str: str) -> str: diff --git a/tests/test_field.py b/tests/test_field.py index 5860274..7cf93ec 100644 --- a/tests/test_field.py +++ b/tests/test_field.py @@ -4,7 +4,6 @@ from edpop_explorer import Field, FieldError, LocationField from edpop_explorer import EDPOPREC -from edpop_explorer.normalizers import NormalizationResult @fixture