Skip to content

Commit

Permalink
Merge pull request #182 from KennethEnevoldsen/pre-commit-ci-update-c…
Browse files Browse the repository at this point in the history
…onfig

[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
KennethEnevoldsen authored Jan 29, 2024
2 parents a456c6c + b0d6c68 commit 28a3fb1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: pyupgrade

- repo: https://github.com/bwhmather/ssort
rev: 0.12.2
rev: 0.12.3
hooks:
- id: ssort

Expand All @@ -24,7 +24,7 @@ repos:
args: [--in-place]

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
args: [--line-length, "88"]
Expand Down
1 change: 0 additions & 1 deletion src/spacy_wrap/architectures.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
ClassificationTransformerModel instead of TransformerModel
"""


from typing import Callable, List

from spacy.tokens import Doc
Expand Down
1 change: 0 additions & 1 deletion src/spacy_wrap/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
- split_by_doc. Changed to fetch logits instead of token embeddings
"""


from typing import List, Literal

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/test_seq_clf_transformer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test for the sequence classification transformer pipeline component."""

import shutil

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_tok_clf_transformer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test for the token classification transformer pipeline component."""

import shutil

import pytest
Expand Down

1 comment on commit 28a3fb1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/spacy_wrap
   __init__.py40100% 
   architectures.py150100% 
   pipeline_component_seq_clf.py1091289%101, 133, 150, 213–218, 250, 290–291
   pipeline_component_tok_clf.py1441888%109, 168, 188, 223, 263–269, 318–324, 354, 394–395
   util.py64592%57–62, 92, 97, 126
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/spacy_wrap/layers
   __init__.py00100% 
   clf_transformer_model.py612264%38, 54–67, 136, 152–161
TOTAL3975786% 

Please sign in to comment.