diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0dbb26f1..d0e352ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - --line-length=88 - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black args: diff --git a/src/ansys/tools/installer/configure.py b/src/ansys/tools/installer/configure.py index cab1465f..9baf58c8 100644 --- a/src/ansys/tools/installer/configure.py +++ b/src/ansys/tools/installer/configure.py @@ -21,6 +21,7 @@ # SOFTWARE. """Configure window.""" + import os from PySide6 import QtCore, QtGui, QtWidgets diff --git a/src/ansys/tools/installer/main.py b/src/ansys/tools/installer/main.py index 47c1118c..35e0d8fa 100644 --- a/src/ansys/tools/installer/main.py +++ b/src/ansys/tools/installer/main.py @@ -22,7 +22,6 @@ """Main installer window.""" - from math import floor import os import sys @@ -307,9 +306,9 @@ def check_for_updates(self): LOG.debug("Checking for updates") try: if is_linux_os(): - (ver, url) = query_gh_latest_release_linux() + ver, url = query_gh_latest_release_linux() else: - (ver, url) = query_gh_latest_release() + ver, url = query_gh_latest_release() except (requests.exceptions.SSLError, requests.exceptions.ConnectionError): LOG.info("Problem requesting version... ") ver = None diff --git a/src/ansys/tools/installer/uninstall.py b/src/ansys/tools/installer/uninstall.py index 000fb5b3..1326df7b 100644 --- a/src/ansys/tools/installer/uninstall.py +++ b/src/ansys/tools/installer/uninstall.py @@ -21,6 +21,7 @@ # SOFTWARE. """Uninstall application.""" + import os import shutil diff --git a/src/ansys/tools/installer/vscode.py b/src/ansys/tools/installer/vscode.py index 3642c405..98dd8a9c 100644 --- a/src/ansys/tools/installer/vscode.py +++ b/src/ansys/tools/installer/vscode.py @@ -21,6 +21,7 @@ # SOFTWARE. """VS code launch window.""" + import os from PySide6 import QtCore, QtGui, QtWidgets @@ -119,11 +120,9 @@ def _open_vscode(self): self.vscode_warning_text.setText( f"""{path} does not exist. Provide a valid path.""" ) - self.vscode_warning_text.setStyleSheet( - """ + self.vscode_warning_text.setStyleSheet(""" color: rgb(255, 0, 0); - """ - ) + """) def _close_all(self): """Close all the pop-up window."""