Skip to content

Commit

Permalink
refactor(dependency_getter): make some methods static
Browse files Browse the repository at this point in the history
  • Loading branch information
mkniewallner committed Oct 2, 2022
1 parent b73fc30 commit b03c632
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deptry/dependency_getter/poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ def get(self) -> List[Dependency]:
self._log_dependencies(dependencies)
return dependencies

def _get_dependencies(self) -> Dict[str, Any]:
@staticmethod
def _get_dependencies() -> Dict[str, Any]:
pyproject_data = load_pyproject_toml()
dependencies: Dict[str, Any] = pyproject_data["tool"]["poetry"]["dependencies"]
return dependencies

def _get_dev_dependencies(self) -> Dict[str, Any]:
@staticmethod
def _get_dev_dependencies() -> Dict[str, Any]:
"""
These can be either under;
Expand Down

0 comments on commit b03c632

Please sign in to comment.