Skip to content

Commit

Permalink
Populate gz_ekumen_worlds package and repository
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic committed Feb 10, 2025
0 parents commit 3fc9d82
Show file tree
Hide file tree
Showing 38 changed files with 2,114 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .cmake-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# ----------------------------------
# Options affecting listfile parsing
# ----------------------------------
with section("parse"):
# Specify structure for custom cmake functions
additional_commands = {
'ament_target_dependencies': {
'kwargs': {
'PUBLIC': '*',
'INTERFACE': '*',
'SYSTEM': '*',
},
},
'rclcpp_components_register_node': {
'pargs': {
'nargs': 1,
},
'kwargs': {
'PLUGIN': 1,
'EXECUTABLE': 1,
'EXECUTOR': 1,
'RESOURCE_INDEX': 1,
}
},
'catkin_package': {
'flags': [
'SKIP_CMAKE_CONFIG_GENERATION',
'SKIP_PKG_CONFIG_GENERATION',
],
'kwargs': {
'INCLUDE_DIRS': '*',
'LIBRARIES': '*',
'CATKIN_DEPENDS': '*',
'DEPENDS': '*',
'CFG_EXTRAS': 1,
'EXPORTED_TARGETS': '*',
}
},
}

# -----------------------------
# Options affecting formatting.
# -----------------------------
with section("format"):
# Force vertical layout if an argument group contains more than this many sub-groups.
max_subgroups_hwrap = 2
# Force vertical layout if a positional argument group contains more than this many arguments.
max_pargs_hwrap = 3
# If true, the parsers may infer whether or not an argument list is sortable (without annotation).
autosort = True

# ------------------------------------------------
# Options affecting comment reflow and formatting.
# ------------------------------------------------
with section("markup"):
# Disable comment markup parsing and reflow.
enable_markup = False
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# More info:
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners

* @IDavGal
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Report a bug
labels: bug
---


## Environment
* OS Version: <!-- e.g, Ubuntu 22.04 -->
* Source or binary build?
<!-- If binary, which version? -->
<!-- If source, which branch and what is the latest commit? -->

## Description
* Expected behavior: <!-- Tell us what you expected to happen -->
* Actual behavior: <!-- What happened instead -->

## Steps to reproduce
<!-- Provide steps so we can try to reproduce this issue -->

1.
2.
3.

## Output
<!-- Provide screenshots, console logs, backtraces, and/or anything that could
be useful to us resolving this issue -->
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Request a new feature
labels: enhancement
---


## Desired behavior
<!-- Describe the current problem and the feature you want implemented.-->

## Alternatives considered
<!-- Describe alternate solutions or features you've considered.-->

## Implementation suggestion
<!-- Provide a suggestion on how to implement this feature, which could help us
expedite this implementation.-->

## Additional context
<!-- Provide any other additional context (e.g., screenshots) about your feature
request.-->
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: ":seedling:"
42 changes: 42 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!--
Please remove the appropriate section.
For example, if this is a new feature, remove all sections except for the "New feature" section
If this is your first time opening a PR, be sure to check the contribution guide:
https://github.com/Ekumen-OS/gz-worlds/blob/main/CONTRIBUTING.md
-->

# 🦟 Bug fix

Fixes #<NUMBER>

## Summary
<!-- Describe your fix, including an explanation of how to reproduce the bug
before and after the PR.-->

## Checklist
- [ ] Signed all commits for DCO
- [ ] Added tests
- [ ] Updated documentation (as needed)
- [ ] Updated migration guide (as needed)


🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

# 🎉 New feature

Closes #<NUMBER>

## Summary
<!--Explain changes made, the expected behavior, and provide any other additional
context (e.g., screenshots, gifs) if appropriate.-->

## Test it
<!--Explain how reviewers can test this new feature manually.-->

## Checklist
- [ ] Signed all commits for DCO
- [ ] Added tests
- [ ] Added example and/or tutorial
- [ ] Updated documentation (as needed)
- [ ] Updated migration guide (as needed)
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

# Cancel previously running PR jobs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
lint:
name: Lint sources
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
cache: pip
- name: Install python packages
run: pip install pre-commit
- name: Run linters
run: pre-commit run --all-files --verbose --show-diff-on-failure
build-and-test:
name: Build & test
needs: lint
runs-on: ubuntu-24.04
container:
image: osrf/ros:jazzy-desktop
steps:
- uses: ros-tooling/setup-ros@v0.7
with:
required-ros-distributions: jazzy
- uses: ros-tooling/action-ros-ci@v0.3
with:
package-name: gz_ekumen_worlds
target-ros2-distro: jazzy
import-token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Run against all the files: pre-commit run -a
# Install the git hook scripts: pre-commit install

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-xml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- id: cmake-lint
Loading

0 comments on commit 3fc9d82

Please sign in to comment.