Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add data integrity tests #15

Merged
merged 13 commits into from
Oct 25, 2022
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.idea
.vscode
__pycache__
.pyc
.ipynb_checkpoints/
docs/_build/
tests/output/
Expand All @@ -11,8 +12,6 @@ db/
notebooks/output/*json
notebooks/output/*tsv
notebooks/input/go.db


notebooks/api-key.txt

.template.db
Expand Down
144 changes: 67 additions & 77 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ importlib-metadata = "^4.12.0"
pytest = "^5.2"
bioregistry = "^0.5.54"
linkml = "^1.3.1"
curies = "^0.2.0"
curies = "^0.3.0"
coverage = "^6.4.4"

[tool.poetry.extras]
Expand Down
9 changes: 9 additions & 0 deletions src/prefixmaps/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
from pathlib import Path
from typing import Mapping

__all__ = [
"data_path",
"context_paths",
]

data_path = Path(__file__).parent

#: A mapping from contexts to their paths
context_paths: Mapping[str, Path] = {path.stem: path for path in data_path.glob("*.csv")}
Loading