From dd333feeba6afc084ce1141d53b606223ed00473 Mon Sep 17 00:00:00 2001 From: Filip Parag Date: Thu, 2 Dec 2021 18:14:42 +0100 Subject: [PATCH] remove linter --- mep3_simulation/launch/robot_launch.py | 2 +- mep3_simulation/setup.py | 2 +- mep3_simulation/test/test_flake8.py | 27 -------------------------- mep3_simulation/test/test_pep257.py | 23 ---------------------- 4 files changed, 2 insertions(+), 52 deletions(-) delete mode 100644 mep3_simulation/test/test_flake8.py delete mode 100644 mep3_simulation/test/test_pep257.py diff --git a/mep3_simulation/launch/robot_launch.py b/mep3_simulation/launch/robot_launch.py index 4ea42a657..2733261c7 100644 --- a/mep3_simulation/launch/robot_launch.py +++ b/mep3_simulation/launch/robot_launch.py @@ -1,11 +1,11 @@ import os import pathlib -import launch from ament_index_python.packages import get_package_share_directory from launch_ros.actions import Node from webots_ros2_core.webots_launcher import WebotsLauncher +import launch from launch.actions import IncludeLaunchDescription from launch.launch_description_sources import PythonLaunchDescriptionSource from launch.substitutions import LaunchConfiguration diff --git a/mep3_simulation/setup.py b/mep3_simulation/setup.py index 90b1ace01..0941ec838 100644 --- a/mep3_simulation/setup.py +++ b/mep3_simulation/setup.py @@ -1,5 +1,5 @@ -from glob import glob import os +from glob import glob from setuptools import setup diff --git a/mep3_simulation/test/test_flake8.py b/mep3_simulation/test/test_flake8.py deleted file mode 100644 index cb1c264b4..000000000 --- a/mep3_simulation/test/test_flake8.py +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 2017 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_flake8.main import main_with_errors -import pytest - - -@pytest.mark.flake8 -@pytest.mark.linter -def test_flake8(): - rc, errors = main_with_errors(argv=[ - '--linelength', '100' - ]) - assert rc == 0, \ - 'Found %d code style errors / warnings:\n' % len(errors) + \ - '\n'.join(errors) diff --git a/mep3_simulation/test/test_pep257.py b/mep3_simulation/test/test_pep257.py deleted file mode 100644 index b234a3840..000000000 --- a/mep3_simulation/test/test_pep257.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2015 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_pep257.main import main -import pytest - - -@pytest.mark.linter -@pytest.mark.pep257 -def test_pep257(): - rc = main(argv=['.', 'test']) - assert rc == 0, 'Found code style errors / warnings'