Skip to content

Commit

Permalink
make pre-commit happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBinder committed Nov 7, 2023
1 parent 845a5fa commit 0aec7f0
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions dataset_builders/pie/conll2002/conll2002.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
"""
Expand Down
4 changes: 2 additions & 2 deletions dataset_builders/pie/conllpp/conllpp.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion dataset_builders/pie/germaner/germaner.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion dataset_builders/pie/germeval_14/germeval_14.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -14,6 +13,7 @@ class GermEval14Config(datasets.BuilderConfig):

def __init__(self, **kwargs):
"""BuilderConfig for GermEval 2014.
Args:
**kwargs: keyword arguments forwarded to super.
"""
Expand Down
4 changes: 2 additions & 2 deletions dataset_builders/pie/ncbi_disease/ncbi_disease.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
"""
Expand Down
1 change: 0 additions & 1 deletion dataset_builders/pie/wikiann/wikiann.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion dataset_builders/pie/wnut_17/wnut_17.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -14,6 +13,7 @@ class WNUT_17Config(datasets.BuilderConfig):

def __init__(self, **kwargs):
"""BuilderConfig for WNUT 17.
Args:
**kwargs: keyword arguments forwarded to super.
"""
Expand Down

0 comments on commit 0aec7f0

Please sign in to comment.