Skip to content

Commit d0852d7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d987180 commit d0852d7

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

src/seabreeze/os_setup.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
author: Andreas Poehlmann
55
"""
6+
67
import argparse
78
import ctypes
89
import logging
@@ -112,16 +113,12 @@ def linux_install_udev_rules():
112113
_log.info(_preview_file(udev_fn))
113114

114115
if not _request_confirmation("Install udev rules?"):
115-
_log.info(
116-
dedent(
117-
f"""\
116+
_log.info(dedent(f"""\
118117
To install the rules manually, copy the rules shown above to
119118
{_UDEV_RULES_PATH} and run:
120119
121120
sudo chmod {_UDEV_RULES_MODE} {_UDEV_RULES_PATH}
122-
sudo udevadm control --reload-rules"""
123-
)
124-
)
121+
sudo udevadm control --reload-rules"""))
125122
sys.exit(0)
126123

127124
# install rules and execute
@@ -232,15 +229,11 @@ def windows_install_drivers():
232229
cmd = [pnputil, "-i", "-a", os.path.join(tmp_dir, "*.inf")]
233230
return_code = subprocess.call(cmd, shell=True)
234231

235-
_log.warning(
236-
dedent(
237-
"""\
232+
_log.warning(dedent("""\
238233
Note: Some of the drivers currently don't have valid signatures.
239234
Look at the output above. If the spectrometer you want to use only
240235
provides an unsigned driver, you might have to install it manually.
241-
If you encounter this issue, please report it on github."""
242-
)
243-
)
236+
If you encounter this issue, please report it on github."""))
244237

245238
if return_code == 0:
246239
_log.info("Success")

0 commit comments

Comments
 (0)