Skip to content

Commit

Permalink
chore: include tests in deptry dependency checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanls committed Nov 14, 2024
1 parent 9e8c985 commit 73e5019
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ Repository = 'https://github.com/thousandbrainsproject.tbp.monty'
Issues = 'https://github.com/thousandbrainsproject/tbp.monty/issues'

[tool.deptry]
exclude= ['venv', '\.venv', '\.direnv', '\.git', 'setup\.py']
experimental_namespace_package = true # recognize tbp.monty as a namespace package
ignore = ['DEP002']
known_first_party = [
'attr', # transitive dependency bundled with habitat-sim
'habitat_sim', # imported via conda (habitat-sim)
'magnum', # transitive dependency bundled with habitat-sim
'quaternion', # imported via conda (quaternion)
'tests',
'tools',
'torch', # imported via conda (pytorch)
'torchvision', # imported via conda (torchvision)
Expand Down
4 changes: 0 additions & 4 deletions tests/unit/dependencies_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@ def test_torch_geometric(self):
import torch_geometric
import torch_geometric.data
import torch_geometric.typing # noqa: F401

def test_torch_sparse(self):
import torch_sparse # noqa: F401
from torch_sparse import SparseTensor # noqa: F401
6 changes: 0 additions & 6 deletions tools/generate_api_docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,16 @@
autodoc_member_order = "groupwise"
autodoc_inherit_docstrings = True
autodoc_mock_imports = [
"PIL",
"gym",
"habitat_sim",
"magnum",
"matplotlib",
"numba",
"numpy",
"pandas",
"quaternion",
"scipy",
"skimage",
"sklearn",
"torch",
"torch_geometric",
"torch_sparse",
"torchvision",
]
# If true, the current module name will be prepended to all description
Expand All @@ -180,7 +175,6 @@
"pillow": ("https://pillow.readthedocs.io/en/stable/", None),
"python": ("https://docs.python.org/3", None),
"torch": ("https://pytorch.org/docs/stable/", None),
"torch_sparse": ("https://pytorch.org/docs/stable/", None),
"torch_geometric": ("https://pytorch-geometric.readthedocs.io/en/latest/", None),
"torchvision": ("https://pytorch.org/vision/stable/", None),
}
Expand Down

0 comments on commit 73e5019

Please sign in to comment.