File tree Expand file tree Collapse file tree 9 files changed +584
-0
lines changed
dynamic_payload_analysis_core
dynamic_payload_analysis_core Expand file tree Collapse file tree 9 files changed +584
-0
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <?xml-model href =" http://download.ros.org/schema/package_format3.xsd" schematypens =" http://www.w3.org/2001/XMLSchema" ?>
3+ <package format =" 3" >
4+ <name >dynamic_payload_analysis_core</name >
5+ <version >0.0.0</version >
6+ <description >Core package with calculation for torques calculator</description >
7+ <maintainer email =" enrimoro003@gmail.com" >morolinux</maintainer >
8+ <license >TODO: License declaration</license >
9+
10+ <test_depend >ament_copyright</test_depend >
11+ <test_depend >ament_flake8</test_depend >
12+ <test_depend >ament_pep257</test_depend >
13+ <test_depend >python3-pytest</test_depend >
14+
15+ <export >
16+ <build_type >ament_python</build_type >
17+ </export >
18+ </package >
Original file line number Diff line number Diff line change 1+ [develop]
2+ script_dir =$base/lib/dynamic_payload_analysis_core
3+ [install]
4+ install_scripts =$base/lib/dynamic_payload_analysis_core
Original file line number Diff line number Diff line change 1+ from setuptools import find_packages , setup
2+
3+ package_name = 'dynamic_payload_analysis_core'
4+
5+ setup (
6+ name = package_name ,
7+ version = '0.0.0' ,
8+ packages = find_packages (exclude = ['test' ]),
9+ data_files = [
10+ ('share/ament_index/resource_index/packages' ,
11+ ['resource/' + package_name ]),
12+ ('share/' + package_name , ['package.xml' ]),
13+ ],
14+ install_requires = ['setuptools' ],
15+ zip_safe = True ,
16+ maintainer = 'morolinux' ,
17+ maintainer_email = 'enrimoro003@gmail.com' ,
18+ description = 'TODO: Package description' ,
19+ license = 'TODO: License declaration' ,
20+ tests_require = ['pytest' ],
21+ entry_points = {
22+ 'console_scripts' : [
23+ ],
24+ },
25+ )
Original file line number Diff line number Diff line change 1+ # Copyright 2015 Open Source Robotics Foundation, Inc.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ from ament_copyright .main import main
16+ import pytest
17+
18+
19+ # Remove the `skip` decorator once the source file(s) have a copyright header
20+ @pytest .mark .skip (reason = 'No copyright header has been placed in the generated source file.' )
21+ @pytest .mark .copyright
22+ @pytest .mark .linter
23+ def test_copyright ():
24+ rc = main (argv = ['.' , 'test' ])
25+ assert rc == 0 , 'Found errors'
Original file line number Diff line number Diff line change 1+ # Copyright 2017 Open Source Robotics Foundation, Inc.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ from ament_flake8 .main import main_with_errors
16+ import pytest
17+
18+
19+ @pytest .mark .flake8
20+ @pytest .mark .linter
21+ def test_flake8 ():
22+ rc , errors = main_with_errors (argv = [])
23+ assert rc == 0 , \
24+ 'Found %d code style errors / warnings:\n ' % len (errors ) + \
25+ '\n ' .join (errors )
Original file line number Diff line number Diff line change 1+ # Copyright 2015 Open Source Robotics Foundation, Inc.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ from ament_pep257 .main import main
16+ import pytest
17+
18+
19+ @pytest .mark .linter
20+ @pytest .mark .pep257
21+ def test_pep257 ():
22+ rc = main (argv = ['.' , 'test' ])
23+ assert rc == 0 , 'Found code style errors / warnings'
You can’t perform that action at this time.
0 commit comments