From 5a5b94906c6a35843d16a4886637a3043cd21e37 Mon Sep 17 00:00:00 2001 From: rafal-gorecki Date: Tue, 30 Jan 2024 11:03:33 +0100 Subject: [PATCH] revert black string processing --- .pre-commit-config.yaml | 5 +++-- rosbot_gazebo/test/test_diff_drive_simulation.py | 1 - rosbot_gazebo/test/test_mecanum_simulation.py | 1 - rosbot_gazebo/test/test_multirobot_diff_drive_simulation.py | 1 - rosbot_gazebo/test/test_multirobot_mecanum_simulation.py | 1 - rosbot_gazebo/test/test_namespaced_diff_drive_simulation.py | 1 - rosbot_gazebo/test/test_namespaced_mecanum_simulation.py | 1 - 7 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 687be6c9..8b997ed4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,11 +32,12 @@ repos: files: ^(?!.*compose)(?!.*ekf\.yaml$).*$ args: [--mapping, '2', --sequence, '4', --offset, '2', --width, '100'] + # Please keep this version until --experimental-string-processing come back or will be available by default - repo: https://github.com/psf/black - rev: 24.1.1 + rev: 23.11.0 hooks: - id: black - args: [--line-length=99] + args: [--line-length=99, --experimental-string-processing] - repo: https://github.com/PyCQA/flake8 rev: 7.0.0 diff --git a/rosbot_gazebo/test/test_diff_drive_simulation.py b/rosbot_gazebo/test/test_diff_drive_simulation.py index c41fb25d..05be03ab 100644 --- a/rosbot_gazebo/test/test_diff_drive_simulation.py +++ b/rosbot_gazebo/test/test_diff_drive_simulation.py @@ -33,7 +33,6 @@ @launch_pytest.fixture def generate_test_description(): - rosbot_gazebo = get_package_share_directory("rosbot_gazebo") simulation_launch = IncludeLaunchDescription( PythonLaunchDescriptionSource( diff --git a/rosbot_gazebo/test/test_mecanum_simulation.py b/rosbot_gazebo/test/test_mecanum_simulation.py index ef1e619f..c2d1b4f6 100644 --- a/rosbot_gazebo/test/test_mecanum_simulation.py +++ b/rosbot_gazebo/test/test_mecanum_simulation.py @@ -33,7 +33,6 @@ @launch_pytest.fixture def generate_test_description(): - rosbot_gazebo = get_package_share_directory("rosbot_gazebo") simulation_launch = IncludeLaunchDescription( PythonLaunchDescriptionSource( diff --git a/rosbot_gazebo/test/test_multirobot_diff_drive_simulation.py b/rosbot_gazebo/test/test_multirobot_diff_drive_simulation.py index 1625c295..e3e52c28 100644 --- a/rosbot_gazebo/test/test_multirobot_diff_drive_simulation.py +++ b/rosbot_gazebo/test/test_multirobot_diff_drive_simulation.py @@ -31,7 +31,6 @@ @launch_pytest.fixture def generate_test_description(): - # IncludeLaunchDescription does not work with robots argument simulation_launch = ExecuteProcess( cmd=[ diff --git a/rosbot_gazebo/test/test_multirobot_mecanum_simulation.py b/rosbot_gazebo/test/test_multirobot_mecanum_simulation.py index 5eea5667..547f0d2e 100644 --- a/rosbot_gazebo/test/test_multirobot_mecanum_simulation.py +++ b/rosbot_gazebo/test/test_multirobot_mecanum_simulation.py @@ -31,7 +31,6 @@ @launch_pytest.fixture def generate_test_description(): - # IncludeLaunchDescription does not work with robots argument simulation_launch = ExecuteProcess( cmd=[ diff --git a/rosbot_gazebo/test/test_namespaced_diff_drive_simulation.py b/rosbot_gazebo/test/test_namespaced_diff_drive_simulation.py index cf4f30d7..d8cfadc5 100644 --- a/rosbot_gazebo/test/test_namespaced_diff_drive_simulation.py +++ b/rosbot_gazebo/test/test_namespaced_diff_drive_simulation.py @@ -33,7 +33,6 @@ @launch_pytest.fixture def generate_test_description(): - rosbot_gazebo = get_package_share_directory("rosbot_gazebo") simulation_launch = IncludeLaunchDescription( PythonLaunchDescriptionSource( diff --git a/rosbot_gazebo/test/test_namespaced_mecanum_simulation.py b/rosbot_gazebo/test/test_namespaced_mecanum_simulation.py index 2a6562f3..487c4ca1 100644 --- a/rosbot_gazebo/test/test_namespaced_mecanum_simulation.py +++ b/rosbot_gazebo/test/test_namespaced_mecanum_simulation.py @@ -32,7 +32,6 @@ @launch_pytest.fixture def generate_test_description(): - rosbot_gazebo = get_package_share_directory("rosbot_gazebo") simulation_launch = IncludeLaunchDescription( PythonLaunchDescriptionSource(