From 3f3c9c537a851b9c7754f8c3958dec916789fb08 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Thu, 19 Oct 2023 03:53:20 +0200 Subject: [PATCH] Add and apply black Signed-off-by: Jakub Delicat --- .github/workflows/black.yaml | 12 ++++++++++++ rosbot_xl_bringup/launch/bringup.launch.py | 2 +- rosbot_xl_controller/launch/controller.launch.py | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/black.yaml diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml new file mode 100644 index 00000000..a170ee47 --- /dev/null +++ b/.github/workflows/black.yaml @@ -0,0 +1,12 @@ +name: Black python lint + +on: + workflow_call: + push: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: psf/black@stable diff --git a/rosbot_xl_bringup/launch/bringup.launch.py b/rosbot_xl_bringup/launch/bringup.launch.py index 90c46334..09bbb1c9 100644 --- a/rosbot_xl_bringup/launch/bringup.launch.py +++ b/rosbot_xl_bringup/launch/bringup.launch.py @@ -115,4 +115,4 @@ def generate_launch_description(): laser_filter_node, ] - return LaunchDescription(actions) \ No newline at end of file + return LaunchDescription(actions) diff --git a/rosbot_xl_controller/launch/controller.launch.py b/rosbot_xl_controller/launch/controller.launch.py index 80b87970..1f075d23 100644 --- a/rosbot_xl_controller/launch/controller.launch.py +++ b/rosbot_xl_controller/launch/controller.launch.py @@ -218,4 +218,4 @@ def generate_launch_description(): delay_imu_broadcaster_spawner_after_robot_controller_spawner, ] - return LaunchDescription(actions) \ No newline at end of file + return LaunchDescription(actions)