Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black-pre-commit-mirror
rev: '25.9.0'
rev: '26.1.0'
hooks:
- id: black
language_version: python3
Expand All @@ -28,13 +28,13 @@ repos:
language_version: python3
exclude: "^(build|docs|tests|setup.py)"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.18.2'
rev: 'v1.19.1'
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]
Expand Down
9 changes: 3 additions & 6 deletions src/seabreeze/os_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

author: Andreas Poehlmann
"""

import argparse
import ctypes
import logging
Expand Down Expand Up @@ -206,15 +207,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")
Expand Down