Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ceriottm committed Sep 26, 2024
1 parent a0bf498 commit c27f098
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ipi/utils/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ def install_driver(force_install=False):
try:
subprocess.run(["git", "init"], cwd=temp_dir)
subprocess.run(
["git", "remote", "add", "origin", "https://github.com/lab-cosmo/i-pi.git"],
[
"git",
"remote",
"add",
"origin",
"https://github.com/lab-cosmo/i-pi.git",
],
cwd=temp_dir,
)
subprocess.run(
Expand All @@ -74,7 +80,9 @@ def install_driver(force_install=False):
os.path.join(temp_dir, ".git", "info", "sparse-checkout"), "w"
) as f:
f.write("drivers/f90\n")
subprocess.run(["git", "pull", "--depth=1", "origin", "feat/equivator"], cwd=temp_dir)
subprocess.run(
["git", "pull", "--depth=1", "origin", "feat/equivator"], cwd=temp_dir
)
except:
warning(
"Failed to fetch the drivers folder from i-PI github repository",
Expand Down

0 comments on commit c27f098

Please sign in to comment.