Skip to content

Commit

Permalink
Merge branch 'main' into il-gs-add-study
Browse files Browse the repository at this point in the history
  • Loading branch information
ireneisdoomed authored Dec 5, 2023
2 parents 2e6f685 + bc5f2b3 commit 50b3f97
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 123 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Check dependencies
run: poetry run deptry .
- name: Run tests
run: poetry run pytest
- name: Upload coverage to Codecov
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ markdown_extensions:
permalink: true

hooks:
- src/scripts/schemadocs.py
- src/utils/schemadocs.py

repo_name: opentargets/genetics_etl_python
repo_url: https://github.com/opentargets/genetics_etl_python
Expand Down
183 changes: 63 additions & 120 deletions poetry.lock

Large diffs are not rendered by default.

16 changes: 14 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ scipy = "^1.11.4"
hydra-core = "^1.3.2"
pyliftover = "^0.4"
xgboost = "^1.7.3"
scikit-learn = "^1.2.1"
numpy = "^1.26.1"
hail = "0.2.126"
pyarrow = "^14.0.1"
wandb = "^0.16.0"
google = "^3.0.0"
omegaconf = "^2.3.0"
typing-extensions = "^4.8.0"
scikit-learn = "^1.3.2"

[tool.poetry.dev-dependencies]
pre-commit = "^3.5.0"
Expand Down Expand Up @@ -64,6 +66,7 @@ google-cloud-dataproc = "^5.7.0"
apache-airflow = "^2.7.3"
apache-airflow-providers-google = "^10.12.0"
pydoclint = "^0.3.8"
deptry = "^0.12.0"


[tool.semantic_release]
Expand All @@ -83,6 +86,12 @@ build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"

[tool.deptry]
extend_exclude = ["src/conftest.py", "src/airflow", "src/utils"]

[tool.deptry.per_rule_ignores]
DEP001 = ["otg"]

[tool.interrogate]
fail-under = 95
color = true
Expand Down Expand Up @@ -117,6 +126,9 @@ module = [
"scipy",
"scipy.stats",
"chardet",
"omegaconf",
"xgboost",
"sklearn",
]
ignore_missing_imports = true

Expand Down
2 changes: 2 additions & 0 deletions src/otg/l2g.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from dataclasses import dataclass, field
from typing import Any

import sklearn
from omegaconf import MISSING
from xgboost.spark import SparkXGBClassifier

Expand Down Expand Up @@ -104,6 +105,7 @@ def __post_init__(self: LocusToGeneStep) -> None:
Raises:
ValueError: if run_mode is not one of "train" or "predict".
"""
print("Sci-kit learn version: ", sklearn.__version__)
if self.run_mode not in ["train", "predict"]:
raise ValueError(
f"run_mode must be one of 'train' or 'predict', got {self.run_mode}"
Expand Down
File renamed without changes.

0 comments on commit 50b3f97

Please sign in to comment.