Skip to content

Commit

Permalink
feat: deptry as pre-commit and associated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
d0choa committed Dec 4, 2023
1 parent 70887ca commit fac4f0f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 73 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,9 @@ repos:
rev: 0.3.8
hooks:
- id: pydoclint

- repo: https://github.com/fpgmaas/deptry.git
rev: 0.12.0
hooks:
- id: deptry
args: ["--per-rule-ignores", "DEP001=otg"]
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
85 changes: 15 additions & 70 deletions poetry.lock

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

8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ scipy = "^1.11.3"
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"

[tool.poetry.dev-dependencies]
pre-commit = "^3.5.0"
Expand Down Expand Up @@ -84,6 +85,9 @@ 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"]

Expand Down
File renamed without changes.

0 comments on commit fac4f0f

Please sign in to comment.