Skip to content

Commit 56dc4ac

Browse files
Feature/cleanup 2d places (#55)
* fix field usage in 2d place attributes * fix package files and use pr branches for ci * fix package name * update and run pre-commit * add required ros deps to ci branches * ignore docker files
1 parent 558b804 commit 56dc4ac

34 files changed

Lines changed: 195 additions & 382 deletions

.cmake-format.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
parse:
23
additional_commands:
34
catkin_package:

.github/workflows/ci.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
2-
# based on https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
32
name: Hydra-ROS Build and Test
4-
on: {push: {branches: [main]}, pull_request: {branches: [main]}}
3+
on: {push: {branches: [main, develop]}, pull_request: {branches: [main, develop]}}
54
jobs:
65
ros2:
76
runs-on: ubuntu-latest
@@ -19,7 +18,7 @@ jobs:
1918
- name: Dependencies
2019
run: |
2120
apt update && apt install -y python3-vcstool git ccache
22-
vcs import src < src/hydra_ros/install/packages.yaml
21+
vcs import src < src/hydra_ros/install/ci/${{ github.base_ref || github.ref_name }}.yaml
2322
rosdep update --rosdistro jazzy && rosdep install --rosdistro jazzy --from-paths src --ignore-src -r -y
2423
- name: Build
2524
shell: bash

.github/workflows/linting.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# based on https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
3-
name: Hydra-ROS Linting
3+
name: Linting
44
on: {push: {branches: [main, develop]}, pull_request: {}}
55
jobs:
66
lint:

.pre-commit-config.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
---
22
# See https://pre-commit.com for more information
33
# See https://pre-commit.com/hooks.html for more hooks
4-
exclude: .*\.tsv|\.clang-format
4+
exclude: .*\.tsv|\.clang-format|.*docker-compose.yml
55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v3.2.0
7+
rev: v6.0.0
88
hooks:
99
- id: trailing-whitespace
1010
- id: end-of-file-fixer
11-
- id: check-yaml
1211
- id: check-added-large-files
1312
- repo: https://github.com/pre-commit/mirrors-clang-format
14-
rev: v14.0.6
13+
rev: v21.1.8
1514
hooks:
1615
- id: clang-format
16+
- repo: https://github.com/astral-sh/ruff-pre-commit
17+
rev: v0.14.14
18+
hooks:
19+
- {id: ruff, args: [--select, I, --fix]}
20+
- id: ruff
21+
- id: ruff-format
22+
- repo: https://github.com/lyz-code/yamlfix
23+
rev: 1.19.1
24+
hooks:
25+
- id: yamlfix
26+
entry: env YAMLFIX_LINE_LENGTH=200 yamlfix

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ echo "build: {cmake-args: [-DCMAKE_BUILD_TYPE=Release]}" > colcon_defaults.yaml
7474

7575
cd src
7676
git clone git@github.com:MIT-SPARK/Hydra-ROS.git hydra_ros
77-
vcs import . < hydra_ros/install/ros2.yaml
77+
vcs import . < hydra_ros/install/packages.yaml
7878
rosdep install --from-paths . --ignore-src -r -y
7979

8080
cd ..

dev/check-code.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

dev/check-licenses.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

dev/check_license.py

Lines changed: 0 additions & 73 deletions
This file was deleted.

dev/cpp-header.txt

Lines changed: 0 additions & 34 deletions
This file was deleted.

dev/python-header.txt

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)