-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from CentraleNantesRobotics/develop
Added roslint, pre-commit formatting and CI
- Loading branch information
Showing
14 changed files
with
438 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
ignore = F841 | ||
max-line-length = 120 | ||
max-complexity = 18 | ||
select = B,C,E,F,W,T4,B9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: ROS CI | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
container: ros:melodic-ros-base | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install catkin & package dependencies | ||
run: | | ||
cd / && ./ros_entrypoint.sh | ||
apt-get update | ||
apt-get install -y python-pip | ||
apt-get install -y ros-melodic-catkin python-catkin-tools | ||
apt-get install -y ros-melodic-cv-bridge | ||
apt-get install -y ros-melodic-roslint | ||
pip install bluerobotics-ping | ||
- name: Setup catkin workspace | ||
run: | | ||
mkdir -p ~/catkin_ws/src | ||
cd ~/catkin_ws | ||
/bin/bash -c "source /opt/ros/melodic/setup.bash && catkin build" | ||
- name: Build package | ||
run: | | ||
cd ~/catkin_ws/src | ||
cp -r $GITHUB_WORKSPACE . | ||
/bin/bash -c "source ../devel/setup.bash && catkin build" | ||
- name: Lint | ||
run: | | ||
cd ~/catkin_ws/src | ||
catkin build ping360_sonar --catkin-make-args roslint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Mark stale issues and pull requests | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
stale: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/stale@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'Stale issue message' | ||
stale-pr-message: 'Stale pull request message' | ||
stale-issue-label: 'no-issue-activity' | ||
stale-pr-label: 'no-pr-activity' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.vscode | ||
launch/test.launch | ||
**/*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-autopep8 | ||
rev: v1.4.4 | ||
hooks: | ||
- id: autopep8 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v1.2.3 | ||
hooks: | ||
- id: flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,40 @@ | ||
<?xml version="1.0"?> | ||
<?xml version="1.0" ?> | ||
<package format="2"> | ||
<name>ping360_sonar</name> | ||
<version>0.1.0</version> | ||
<description>The sonar-ping360 package</description> | ||
<version>1.2.2</version> | ||
<description>A ROS package for Blue Robotics Ping360 Sonar</description> | ||
|
||
<url type="website">http://wiki.ros.org/ping360_sonar</url> | ||
<url type="repository">https://github.com/CentraleNantesRobotics/ping360_sonar.git</url> | ||
<url type="bugtracker">https://github.com/CentraleNantesRobotics/ping360_sonar/issues</url> | ||
|
||
<author>Anas Mazouni</author> | ||
<author>Henrique Martinez de Azevedo</author> | ||
|
||
<maintainer email="[email protected]">Anas Mazouni</maintainer> | ||
<maintainer email="[email protected]">Henrique Martinez de Azevedo</maintainer> | ||
|
||
|
||
<license>MIT</license> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
|
||
<build_depend>cv_bridge</build_depend> | ||
<build_depend>rospy</build_depend> | ||
<build_depend>dynamic_reconfigure</build_depend> | ||
<build_depend>sensor_msgs</build_depend> | ||
<build_depend>std_msgs</build_depend> | ||
<build_depend>message_generation</build_depend> | ||
<build_depend>roslint</build_depend> | ||
|
||
<build_export_depend>cv_bridge</build_export_depend> | ||
<build_export_depend>rospy</build_export_depend> | ||
<build_export_depend>sensor_msgs</build_export_depend> | ||
<build_export_depend>std_msgs</build_export_depend> | ||
|
||
<exec_depend>cv_bridge</exec_depend> | ||
<exec_depend>rospy</exec_depend> | ||
<exec_depend>sensor_msgs</exec_depend> | ||
<exec_depend>std_msgs</exec_depend> | ||
<exec_depend>dynamic_reconfigure</exec_depend> | ||
<exec_depend>message_runtime</exec_depend> | ||
</package> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
install_requires=['bluerobotics-ping'] | ||
) | ||
|
||
setup(**setup_args) | ||
setup(**setup_args) |
Oops, something went wrong.