diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6cd85583..5d3dc89a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -125,7 +125,7 @@ repos: always_run: true args: [., --min=10] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.1 + rev: v0.4.2 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/pyproject.toml b/pyproject.toml index 367beaff..840d905d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -105,7 +105,7 @@ poetry = ">=1.8.0" pre-commit = ">=2.20.0" pre-commit-update = ">=0.1.3" pylint = {extras = ["spelling"], version = "3.1.0"} # Update this by running scripts/update_development_dependencies.py -pyright = "1.1.359" # Update this by running scripts/update_development_dependencies.py +pyright = "1.1.360" # Update this by running scripts/update_development_dependencies.py pyroma = ">=4.2" pytest = ">=7.1.2" pytest-cov = ">=3.0.0" @@ -114,7 +114,7 @@ pytest-html = ">=4.0" pytest-order = ">=1.0.1" pytest-profiling = ">=1.7.0" python-semantic-release = ">=8.5.1" -ruff = "0.4.1" # Update this by running scripts/update_development_dependencies.py +ruff = "0.4.2" # Update this by running scripts/update_development_dependencies.py safety = ">=2.1.1" sphinx-autoapi = ">=2.0.0" sphinx-copybutton = ">=0.5.1" diff --git a/src/tm_devices/helpers/functions.py b/src/tm_devices/helpers/functions.py index 0a7e995a..0b5e8180 100644 --- a/src/tm_devices/helpers/functions.py +++ b/src/tm_devices/helpers/functions.py @@ -347,7 +347,7 @@ def create_visa_connection( visa_library ).open_resource(resource_expression) # The broad except is because pyvisa_py can throw a base exception in the tcpip.py file - except Exception as error_2: # noqa: BLE001 + except Exception as error_2: message = f"Unable to establish a VISA connection to {resource_expression}\n\n" if device_config_entry.connection_type in { ConnectionTypes.TCPIP,