diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2367800..f170666 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.7.4 + rev: v0.8.0 hooks: # Run the linter. - id: ruff diff --git a/pyvisa_py/__init__.py b/pyvisa_py/__init__.py index 8ecb6c9..13964fc 100644 --- a/pyvisa_py/__init__.py +++ b/pyvisa_py/__init__.py @@ -16,7 +16,7 @@ # package is not installed pass -# noqa: we need to import so that __init_subclass__() is executed once +# We need to import all attributes so that __init_subclass__() is executed once from . import attributes # noqa: F401 from .highlevel import PyVisaLibrary diff --git a/pyvisa_py/protocols/xdrlib.py b/pyvisa_py/protocols/xdrlib.py index 73b1169..c69fbc4 100644 --- a/pyvisa_py/protocols/xdrlib.py +++ b/pyvisa_py/protocols/xdrlib.py @@ -10,7 +10,7 @@ from functools import wraps from io import BytesIO -__all__ = ["Error", "Packer", "Unpacker", "ConversionError"] +__all__ = ["ConversionError", "Error", "Packer", "Unpacker"] # exceptions