Skip to content

Commit

Permalink
workflows: check pycodestyle (previously pep8)
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Oes <[email protected]>
  • Loading branch information
julianoes committed Mar 28, 2023
1 parent 08c093c commit 942834e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
- name: Install pip
run: sudo apt-get install -y python3-pip

- name: Check style
run: |
python3 -m pip install pycodestyle
export PATH=$PATH:$HOME/.local/bin
pycodestyle examples/*
- name: Install prerequisites
run: |
python3 -m pip install -r requirements.txt -r requirements-dev.txt -r requirements-docs.txt
Expand Down
2 changes: 1 addition & 1 deletion examples/camera_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def run():
asyncio.ensure_future(observe_camera_mode(drone))
asyncio.ensure_future(observe_possible_setting_options(drone))

while(True):
while True:
entered_input = await ainput(usage_str)

if (entered_input == "p"):
Expand Down
2 changes: 1 addition & 1 deletion examples/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
async def run():
# Init the drone
drone = System()
await drone.connect()
await drone.connect(system_address="udp://:14540")

# Start the tasks
asyncio.ensure_future(print_battery(drone))
Expand Down

0 comments on commit 942834e

Please sign in to comment.