From 0aec7f03e5136640c0ddc46c12098f559300725d Mon Sep 17 00:00:00 2001 From: Arne Binder Date: Tue, 7 Nov 2023 01:13:10 +0100 Subject: [PATCH] make pre-commit happy --- .pre-commit-config.yaml | 2 +- dataset_builders/pie/conll2002/conll2002.py | 4 ++-- dataset_builders/pie/conllpp/conllpp.py | 4 ++-- .../german_legal_entity_recognition.py | 1 - dataset_builders/pie/germaner/germaner.py | 1 - dataset_builders/pie/germeval_14/germeval_14.py | 2 +- dataset_builders/pie/ncbi_disease/ncbi_disease.py | 4 ++-- dataset_builders/pie/wikiann/wikiann.py | 1 - dataset_builders/pie/wnut_17/wnut_17.py | 2 +- 9 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 423a3f22..80302ded 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -79,7 +79,7 @@ repos: hooks: - id: codespell args: - - --skip=logs/**,data/** + - --skip=logs/**,data/**,dataset_builders/pie/wikiann/wikiann.py # hist: required for plotext.hist() # ba: denotes beginning of an encoding with label as 'a'. More details at src/pie_utils/sequence_tagging/ill_formed.py - --ignore-words-list=hist,ba diff --git a/dataset_builders/pie/conll2002/conll2002.py b/dataset_builders/pie/conll2002/conll2002.py index 74801001..50437f41 100644 --- a/dataset_builders/pie/conll2002/conll2002.py +++ b/dataset_builders/pie/conll2002/conll2002.py @@ -1,7 +1,6 @@ from dataclasses import dataclass import datasets - import pytorch_ie.data.builder from pytorch_ie.annotations import LabeledSpan from pytorch_ie.core import AnnotationList, annotation_field @@ -10,10 +9,11 @@ class Conll2002Config(datasets.BuilderConfig): - """BuilderConfig for CoNLL2002""" + """BuilderConfig for CoNLL2002.""" def __init__(self, **kwargs): """BuilderConfig for CoNLL2002. + Args: **kwargs: keyword arguments forwarded to super. """ diff --git a/dataset_builders/pie/conllpp/conllpp.py b/dataset_builders/pie/conllpp/conllpp.py index 18896a2a..53ada15d 100644 --- a/dataset_builders/pie/conllpp/conllpp.py +++ b/dataset_builders/pie/conllpp/conllpp.py @@ -1,7 +1,6 @@ from dataclasses import dataclass import datasets - import pytorch_ie.data.builder from pytorch_ie.annotations import LabeledSpan from pytorch_ie.core import AnnotationList, annotation_field @@ -10,10 +9,11 @@ class CoNLLppConfig(datasets.BuilderConfig): - """BuilderConfig for CoNLLpp""" + """BuilderConfig for CoNLLpp.""" def __init__(self, **kwargs): """BuilderConfig for CoNLLpp. + Args: **kwargs: keyword arguments forwarded to super. """ diff --git a/dataset_builders/pie/german_legal_entity_recognition/german_legal_entity_recognition.py b/dataset_builders/pie/german_legal_entity_recognition/german_legal_entity_recognition.py index ea0c5934..7ba5c2d3 100644 --- a/dataset_builders/pie/german_legal_entity_recognition/german_legal_entity_recognition.py +++ b/dataset_builders/pie/german_legal_entity_recognition/german_legal_entity_recognition.py @@ -1,7 +1,6 @@ from dataclasses import dataclass import datasets - import pytorch_ie.data.builder from pytorch_ie.annotations import LabeledSpan from pytorch_ie.core import AnnotationList, annotation_field diff --git a/dataset_builders/pie/germaner/germaner.py b/dataset_builders/pie/germaner/germaner.py index feb63de8..f803a4a4 100644 --- a/dataset_builders/pie/germaner/germaner.py +++ b/dataset_builders/pie/germaner/germaner.py @@ -1,7 +1,6 @@ from dataclasses import dataclass import datasets - import pytorch_ie.data.builder from pytorch_ie.annotations import LabeledSpan from pytorch_ie.core import AnnotationList, annotation_field diff --git a/dataset_builders/pie/germeval_14/germeval_14.py b/dataset_builders/pie/germeval_14/germeval_14.py index 668258e1..5f9ad2d5 100644 --- a/dataset_builders/pie/germeval_14/germeval_14.py +++ b/dataset_builders/pie/germeval_14/germeval_14.py @@ -1,7 +1,6 @@ from dataclasses import dataclass import datasets - import pytorch_ie.data.builder from pytorch_ie.annotations import LabeledSpan from pytorch_ie.core import AnnotationList, annotation_field @@ -14,6 +13,7 @@ class GermEval14Config(datasets.BuilderConfig): def __init__(self, **kwargs): """BuilderConfig for GermEval 2014. + Args: **kwargs: keyword arguments forwarded to super. """ diff --git a/dataset_builders/pie/ncbi_disease/ncbi_disease.py b/dataset_builders/pie/ncbi_disease/ncbi_disease.py index 1e8d69ad..f25aba0c 100644 --- a/dataset_builders/pie/ncbi_disease/ncbi_disease.py +++ b/dataset_builders/pie/ncbi_disease/ncbi_disease.py @@ -1,7 +1,6 @@ from dataclasses import dataclass import datasets - import pytorch_ie.data.builder from pytorch_ie.annotations import LabeledSpan from pytorch_ie.core import AnnotationList, annotation_field @@ -10,10 +9,11 @@ class NCBIDiseaseConfig(datasets.BuilderConfig): - """BuilderConfig for NCBIDisease""" + """BuilderConfig for NCBIDisease.""" def __init__(self, **kwargs): """BuilderConfig for NCBIDisease. + Args: **kwargs: keyword arguments forwarded to super. """ diff --git a/dataset_builders/pie/wikiann/wikiann.py b/dataset_builders/pie/wikiann/wikiann.py index 634d9799..b9c437fd 100644 --- a/dataset_builders/pie/wikiann/wikiann.py +++ b/dataset_builders/pie/wikiann/wikiann.py @@ -1,7 +1,6 @@ from dataclasses import dataclass import datasets - import pytorch_ie.data.builder from pytorch_ie.annotations import LabeledSpan from pytorch_ie.core import AnnotationList, annotation_field diff --git a/dataset_builders/pie/wnut_17/wnut_17.py b/dataset_builders/pie/wnut_17/wnut_17.py index 82162e36..e69ef586 100644 --- a/dataset_builders/pie/wnut_17/wnut_17.py +++ b/dataset_builders/pie/wnut_17/wnut_17.py @@ -1,7 +1,6 @@ from dataclasses import dataclass import datasets - import pytorch_ie.data.builder from pytorch_ie.annotations import LabeledSpan from pytorch_ie.core import AnnotationList, annotation_field @@ -14,6 +13,7 @@ class WNUT_17Config(datasets.BuilderConfig): def __init__(self, **kwargs): """BuilderConfig for WNUT 17. + Args: **kwargs: keyword arguments forwarded to super. """