Skip to content

Commit f1524fa

Browse files
committed
lint check update
1 parent 0af5941 commit f1524fa

22 files changed

Lines changed: 17 additions & 28 deletions

‎hackrfpy/examples/benchmark.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def bench_drop_test(h, rate, seconds):
9292
if steady_rate >= rate / 1e6 * 0.95:
9393
print(f" -> sustains {rate/1e6:g} Msps in steady state")
9494
else:
95-
print(f" -> steady rate below target; possible real limit here")
95+
print(" -> steady rate below target; possible real limit here")
9696

9797
# Drop detection: authoritative hackrf_debug -S shortfall count + the
9898
# hackrf_transfer 'overruns' count from stderr.
@@ -109,10 +109,10 @@ def bench_drop_test(h, rate, seconds):
109109
pass
110110

111111
if got >= n * 0.999:
112-
print(f" note: ~100% of requested samples received -- no bulk loss")
112+
print(" note: ~100% of requested samples received -- no bulk loss")
113113
if shortfall is not None:
114114
if shortfall == 0:
115-
print(f" hackrf_debug -S: 0 shortfalls -- clean")
115+
print(" hackrf_debug -S: 0 shortfalls -- clean")
116116
elif shortfall <= 3:
117117
print(f" hackrf_debug -S: {shortfall} shortfall(s) -- likely a "
118118
f"startup transient, not sustained loss")
@@ -187,4 +187,4 @@ def main():
187187

188188

189189
if __name__ == "__main__":
190-
sys.exit(main())
190+
sys.exit(main())

‎hackrfpy/examples/calibrate.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def freq_response_curve(h, args):
7272
# reference (a broadband noise source with known-flat output). Lacking
7373
# that, this still captures the *relative* shape vs the reference freq,
7474
# which removes most of the "why is 2.4 GHz lower than 100 MHz" confound.
75-
print(f"\n== frequency-response characterization ==")
75+
print("\n== frequency-response characterization ==")
7676
print(" NOTE: only meaningful with a FLAT reference source connected.")
7777
if not args.assume_ready:
7878
input(" press Enter with the flat reference on (or Ctrl-C to skip)... ")

‎hackrfpy/examples/collect_sample_data.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,4 @@ def main():
203203

204204

205205
if __name__ == "__main__":
206-
sys.exit(main())
206+
sys.exit(main())

‎hackrfpy/examples/persistent_capture.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ def spectrum(iq):
154154

155155

156156
if __name__ == "__main__":
157-
sys.exit(main())
157+
sys.exit(main())

‎hackrfpy/examples/power_meter.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
##--------------------------------------------------------------------\
1717
import argparse
1818
import sys
19-
import numpy as np
2019
from hackrfpy import HackRF
2120

2221

‎hackrfpy/examples/waterfall_realtime.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ def flush_line():
154154
except KeyboardInterrupt:
155155
pass # context manager has already reaped the child on the way out
156156

157-
print("[*] stopped")
157+
print("[*] stopped")

‎hackrfpy/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ select = ["E", "F", "W"]
7070
# sweep-line parsing comprehensions. Cosmetic only, and renaming would churn
7171
# working parser tests.
7272
"tests/test_parsing.py" = ["E741"]
73-
"tests/test_real_output.py" = ["E741"]
73+
"tests/test_real_output.py" = ["E741"]

‎hackrfpy/src/hackrfpy/_commands/capture.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def _capture_segmented(self, freq, sample_rate, out, segment_secs, lna,
268268
seg = f"{base}_{idx:03d}{ext}"
269269
argv = self._rx_argv(freq, sample_rate, seg, lna, vga, amp,
270270
bias_tee, bw, n_per)
271-
res = self._run(argv, mode="blocking", print_cmd=print_cmd)
271+
self._run(argv, mode="blocking", print_cmd=print_cmd)
272272
if sigmf and not print_cmd:
273273
write_sigmf_meta(seg, freq, sample_rate, lna=lna, vga=vga,
274274
amp=amp, datatype="ci8")

‎hackrfpy/src/hackrfpy/_commands/device.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import shutil
1717

1818
from .. import constants as C
19-
from ..exceptions import HackRFDeviceError, HackRFEnvironmentError, HackRFValueError
19+
from ..exceptions import HackRFDeviceError, HackRFValueError
2020

2121

2222
class DeviceMixin:

‎hackrfpy/src/hackrfpy/_commands/sweep.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def sweep_to_file(self, f_min_hz, f_max_hz, out, *, binary=False,
180180
argv += ["-I"] # binary inverse FFT (binary output mode)
181181
elif binary:
182182
argv += ["-B"] # raw binary output
183-
res = self._run(argv, mode="blocking", print_cmd=print_cmd)
183+
self._run(argv, mode="blocking", print_cmd=print_cmd)
184184
return None if print_cmd else out
185185

186186
def sweep_stream(self, f_min_hz, f_max_hz, **k):

0 commit comments

Comments
 (0)