Skip to content

Commit 942834e

Browse files
committed
workflows: check pycodestyle (previously pep8)
Signed-off-by: Julian Oes <[email protected]>
1 parent 08c093c commit 942834e

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ jobs:
2828
- name: Install pip
2929
run: sudo apt-get install -y python3-pip
3030

31+
- name: Check style
32+
run: |
33+
python3 -m pip install pycodestyle
34+
export PATH=$PATH:$HOME/.local/bin
35+
pycodestyle examples/*
36+
3137
- name: Install prerequisites
3238
run: |
3339
python3 -m pip install -r requirements.txt -r requirements-dev.txt -r requirements-docs.txt

examples/camera_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def run():
2828
asyncio.ensure_future(observe_camera_mode(drone))
2929
asyncio.ensure_future(observe_possible_setting_options(drone))
3030

31-
while(True):
31+
while True:
3232
entered_input = await ainput(usage_str)
3333

3434
if (entered_input == "p"):

examples/telemetry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
async def run():
88
# Init the drone
99
drone = System()
10-
await drone.connect()
10+
await drone.connect(system_address="udp://:14540")
1111

1212
# Start the tasks
1313
asyncio.ensure_future(print_battery(drone))

0 commit comments

Comments
 (0)