Skip to content

Commit 86e99a8

Browse files
committed
Keep Ruff from detecting dry run functions as tests
1 parent 099729c commit 86e99a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pi/manipulators/manipulators/old_servo_dry_run.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
lgpio.gpio_claim_output(gpio_handle, SERVO_PIN)
1111

1212

13-
def test_gpio(width: int, freq: int = 50) -> None:
13+
def run_gpio(width: int, freq: int = 50) -> None:
1414
lgpio.tx_servo(gpio_handle, SERVO_PIN, width, freq)
1515

1616

@@ -19,15 +19,15 @@ def main() -> None:
1919
print('Starting loop')
2020
while True:
2121
print('one way')
22-
test_gpio(1900, 50)
22+
run_gpio(1900, 50)
2323
time.sleep(2)
2424

2525
print('off')
26-
test_gpio(1500, 200)
26+
run_gpio(1500, 200)
2727
time.sleep(2)
2828

2929
print('other way')
30-
test_gpio(1100, 400)
30+
run_gpio(1100, 400)
3131
time.sleep(2)
3232

3333
except KeyboardInterrupt:

0 commit comments

Comments
 (0)