Skip to content

Commit

Permalink
Move git import inside the function
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Oct 8, 2023
1 parent 8fccc92 commit 5218515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyiron_base/project/maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import warnings

import pandas
from git import Repo, InvalidGitRepositoryError

from pyiron_base import state
from pyiron_base.database.performance import get_database_statistics
Expand Down Expand Up @@ -48,6 +47,8 @@ def get_repository_status():
Returns:
pandas.DataFrame: The name of each module and the hash and version for its current git head.
"""
from git import Repo, InvalidGitRepositoryError

module_names = [
name for _, name, _ in pkgutil.iter_modules() if name.startswith("pyiron")
]
Expand Down

0 comments on commit 5218515

Please sign in to comment.