Skip to content

Commit

Permalink
Report test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gbenson committed May 17, 2024
1 parent ff2ece2 commit e5ebba4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dom-tokenizers"
version = "0.0.4"
version = "0.0.5"
authors = [{ name = "Gary Benson" }]
description = "DOM-aware tokenizers for 🤗 Hugging Face language models"
readme = "README.md"
Expand Down Expand Up @@ -39,6 +39,7 @@ dev = [
"datasets",
"flake8",
"pytest",
"pytest-cov",
]
train = [
"datasets",
Expand All @@ -53,6 +54,7 @@ requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
addopts = "--cov=dom_tokenizers"
filterwarnings = [
"error",
"ignore:`resume_download` is deprecated:FutureWarning",
Expand Down
2 changes: 1 addition & 1 deletion src/dom_tokenizers/internal/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
finally:
if __orig_val is None:
os.environ.pop(__var_name)
else:
else: # pragma: no cover
os.environ[__var_name] = __orig_val
del __var_name, __orig_val, os

0 comments on commit e5ebba4

Please sign in to comment.