Skip to content

Commit

Permalink
Fix errors detected by ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
tijmenbaarda committed Dec 19, 2024
1 parent e603efe commit 3e579c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
3 changes: 1 addition & 2 deletions edpop_explorer/cerl.py
Original file line number Diff line number Diff line change
@@ -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
)


Expand Down
2 changes: 1 addition & 1 deletion edpop_explorer/readers/sbtireader.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 2 additions & 6 deletions edpop_explorer/readers/stcn.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
1 change: 0 additions & 1 deletion tests/test_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from edpop_explorer import Field, FieldError, LocationField
from edpop_explorer import EDPOPREC
from edpop_explorer.normalizers import NormalizationResult


@fixture
Expand Down

0 comments on commit 3e579c1

Please sign in to comment.