Skip to content

Commit

Permalink
Merge pull request #15 from cthoyt/add-guarantees
Browse files Browse the repository at this point in the history
Add data integrity tests
  • Loading branch information
caufieldjh authored Oct 25, 2022
2 parents 0348de6 + 1a57104 commit 47842b6
Show file tree
Hide file tree
Showing 6 changed files with 194 additions and 105 deletions.
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

0 comments on commit 47842b6

Please sign in to comment.