Skip to content

Commit 7be448b

Browse files
committed
fix: pre-commit
1 parent 43c016c commit 7be448b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

scripts/update_python_versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def get_minor_version_sublist_with_greater_patch(list: list[str], current_versio
232232
# Get pattern to replace
233233
py_version = parse(list(vanilla_python_versions.values())[-2])
234234
py_version_search = f"{str(py_version.major)}.{str(py_version.minor)}"
235-
search_str = re.compile(py_version_search + "\.[\d]{1,}")
235+
search_str = re.compile(py_version_search + r"\.[\d]{1,}")
236236

237237
# Replace the version
238238
for n, yaml_line in enumerate(yaml_contents):

src/ansys/tools/installer/installed_table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,8 @@ def launch_cmd(
545545
altered_path = path.copy()
546546
for p in path:
547547
if (
548-
"Ansys Python Manager\_internal" in p
549-
or "ansys_python_manager\_internal" in p
548+
r"Ansys Python Manager\_internal" in p
549+
or r"ansys_python_manager\_internal" in p
550550
):
551551
altered_path.remove(p)
552552
myenv = ";".join(altered_path)

src/ansys/tools/installer/linux_functions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ def run_linux_command(pypath, extra, venv=False):
248248
>>> run_linux_command("/home/sha/.local/ansys/python-3.12.0/bin/python3", "uv pip list")
249249
250250
"""
251-
252251
# Update package manager before executing commands
253252
execute_linux_command(f"{pypath} -m pip install -U pip uv")
254253

0 commit comments

Comments
 (0)