From d7f8a3d9c3aaba2c7733365a37ea36e950089cee Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2026 19:00:33 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.9.0 → 26.10.0](https://github.com/psf/black-pre-commit-mirror/compare/25.9.0...26.10.0) - [github.com/pycqa/isort: 7.0.0 → 9.0.2](https://github.com/pycqa/isort/compare/7.0.0...9.0.2) - [github.com/PyCQA/flake8: 7.3.0 → 7.4.1](https://github.com/PyCQA/flake8/compare/7.3.0...7.4.1) - [github.com/pre-commit/mirrors-mypy: v1.18.2 → v2.4.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.18.2...v2.4.0) - [github.com/asottile/pyupgrade: v3.21.0 → v3.21.2](https://github.com/asottile/pyupgrade/compare/v3.21.0...v3.21.2) - [github.com/MarcoGorelli/cython-lint: v0.18.1 → v0.21.1](https://github.com/MarcoGorelli/cython-lint/compare/v0.18.1...v0.21.1) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0266d7f..58eb425 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,16 +11,16 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/psf/black-pre-commit-mirror - rev: '25.9.0' + rev: '26.10.0' hooks: - id: black language_version: python3 - repo: https://github.com/pycqa/isort - rev: 7.0.0 + rev: 9.0.2 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 - rev: '7.3.0' + rev: '7.4.1' hooks: - id: flake8 additional_dependencies: @@ -28,18 +28,18 @@ repos: language_version: python3 exclude: "^(build|docs|tests|setup.py)" - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.18.2' + rev: 'v2.4.0' hooks: - id: mypy additional_dependencies: [numpy>=2.0, pyusb>=1.0] exclude: "^(build|docs|tests|dev|setup.py)" - repo: https://github.com/asottile/pyupgrade - rev: v3.21.0 + rev: v3.21.2 hooks: - id: pyupgrade args: [--py39-plus] - repo: https://github.com/MarcoGorelli/cython-lint - rev: v0.18.1 + rev: v0.21.1 hooks: - id: cython-lint - id: double-quote-cython-strings From 0bff60c5092782777539f66de0622a56fdc903a4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2026 19:02:29 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/seabreeze/os_setup.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/seabreeze/os_setup.py b/src/seabreeze/os_setup.py index 5615871..dcfb535 100644 --- a/src/seabreeze/os_setup.py +++ b/src/seabreeze/os_setup.py @@ -3,6 +3,7 @@ author: Andreas Poehlmann """ + import argparse import ctypes import logging @@ -112,16 +113,12 @@ def linux_install_udev_rules(): _log.info(_preview_file(udev_fn)) if not _request_confirmation("Install udev rules?"): - _log.info( - dedent( - f"""\ + _log.info(dedent(f"""\ To install the rules manually, copy the rules shown above to {_UDEV_RULES_PATH} and run: sudo chmod {_UDEV_RULES_MODE} {_UDEV_RULES_PATH} - sudo udevadm control --reload-rules""" - ) - ) + sudo udevadm control --reload-rules""")) sys.exit(0) # install rules and execute @@ -232,15 +229,11 @@ def windows_install_drivers(): cmd = [pnputil, "-i", "-a", os.path.join(tmp_dir, "*.inf")] return_code = subprocess.call(cmd, shell=True) - _log.warning( - dedent( - """\ + _log.warning(dedent("""\ Note: Some of the drivers currently don't have valid signatures. Look at the output above. If the spectrometer you want to use only provides an unsigned driver, you might have to install it manually. - If you encounter this issue, please report it on github.""" - ) - ) + If you encounter this issue, please report it on github.""")) if return_code == 0: _log.info("Success")