Skip to content

Commit

Permalink
Apply auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasturcani committed Jul 4, 2024
1 parent 8e71823 commit 1a4e9e0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/stko/_internal/calculators/orca_calculators.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def _run_orca( # noqa: PLR0913
stdout=f,
stderr=sp.PIPE,
# Shell is required to run complex arguments.
shell=True, # noqa: S602
shell=True,
)
self._check_outcome(out_file)
if self._discard_output:
Expand Down
2 changes: 1 addition & 1 deletion src/stko/_internal/calculators/xtb_calculators.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def _run_xtb(
stdout=f,
stderr=sp.PIPE,
# Shell is required to run complex arguments.
shell=True, # noqa: S602
shell=True,
)
finally:
os.chdir(init_dir)
Expand Down
2 changes: 1 addition & 1 deletion src/stko/_internal/optimizers/gulp.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def _run_gulp(self, in_file: Path, out_file: Path) -> None:
stdout=f,
stderr=sp.PIPE,
# Shell is required to run complex arguments.
shell=True, # noqa: S602
shell=True,
)

def extract_final_energy(self, out_file: Path) -> float:
Expand Down
8 changes: 4 additions & 4 deletions src/stko/_internal/optimizers/macromodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def _run_bmin(self, mol: stk.Molecule, run_name: str) -> None:
incomplete = True
while incomplete:
process = sp.Popen(
opt_cmd, # noqa: S603
opt_cmd,
stdout=sp.PIPE,
stderr=sp.STDOUT,
universal_newlines=True,
Expand Down Expand Up @@ -228,7 +228,7 @@ def _kill_bmin(self, run_name: str) -> None:
incomplete = True
while incomplete:
out = sp.run(
cmd, # noqa: S603
cmd,
stdout=sp.PIPE,
stderr=sp.STDOUT,
text=True,
Expand All @@ -249,7 +249,7 @@ def _kill_bmin(self, run_name: str) -> None:
start = time.time()
while name in output:
output = sp.run(
cmd, # noqa: S603
cmd,
stdout=sp.PIPE,
stderr=sp.STDOUT,
text=True,
Expand Down Expand Up @@ -345,7 +345,7 @@ def _run_structconvert(self, input_path: Path, output_path: Path) -> None:
# Execute the file conversion.
try:
convrt_return = sp.run(
convrt_cmd, # noqa: S603
convrt_cmd,
stdout=sp.PIPE,
stderr=sp.STDOUT,
text=True,
Expand Down
8 changes: 4 additions & 4 deletions src/stko/_internal/optimizers/xtb.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def _run_xtb(self, xyz: str, out_file: Path | str) -> None:
stdout=f,
stderr=sp.PIPE,
# Shell is required to run complex arguments.
shell=True, # noqa: S602
shell=True,
)

def _write_detailed_control(self) -> None:
Expand Down Expand Up @@ -810,7 +810,7 @@ def _run_crest(self, xyz: str, out_file: Path | str) -> None:
stdout=f,
stderr=sp.PIPE,
# Shell is required to run complex arguments.
shell=True, # noqa: S602
shell=True,
)

def _run_optimization(
Expand Down Expand Up @@ -1056,7 +1056,7 @@ def _run_xtb(self, xyz: str, out_file: Path | str) -> None:
stdout=f,
stderr=sp.PIPE,
# Shell is required to run complex arguments.
shell=True, # noqa: S602
shell=True,
)

def _run_optimization(
Expand Down Expand Up @@ -1398,7 +1398,7 @@ def _run_crest(self, xyz: Path, out_file: Path) -> None:
stdout=f,
stderr=sp.PIPE,
# Shell is required to run complex arguments.
shell=True, # noqa: S602
shell=True,
)

def _run_optimization(
Expand Down

0 comments on commit 1a4e9e0

Please sign in to comment.