Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .codespell_words
Empty file.
71 changes: 71 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# To use:
#
# pre-commit run -a
#
# Or:
#
# pre-commit install # (runs every time you commit in git)
#
# To update this file:
#
# pre-commit autoupdate
#
# See https://github.com/pre-commit/pre-commit

repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: forbid-crlf
- id: remove-crlf
- id: forbid-tabs
- id: remove-tabs
args: [--whitespaces-count, "2"] # defaults to: 4
files: \.(mach|skill|agent|ros|ros2|rossystem|capa|agentin)$
- id: remove-tabs
args: [--whitespaces-count, "4"] # defaults to: 4
exclude: \.(mach|skill|agent|ros|ros2|rossystem|capa|agentin)$
- id: chmod
args: ["644"]
files: \.md$

# Standard hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
args: ["--unsafe"]
files: \.(mach|skill|agent|ros|ros2|rossystem|capa)$
exclude: "ci/gitlab_templates/JOB_TEMPLATE.yml"
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: pretty-format-json
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
types: [file]
files: \.(launch.py|py)$
args: ["--line-length=100"]

- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args:
[
"--write-changes",
"--ignore-words=.codespell_words",
'--skip="*.eps"',
]
exclude: CHANGELOG.rst
32 changes: 16 additions & 16 deletions de.fraunhofer.ipa.ros.communication.objects/.project
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>de.fraunhofer.ipa.ros.communication.objects</name>
<comment></comment>
<projects>
<project>CommBasicObjects</project>
<project>de.fraunhofer.ipa.ros</project>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
</natures>
<name>de.fraunhofer.ipa.ros.communication.objects</name>
<comment></comment>
<projects>
<project>CommBasicObjects</project>
<project>de.fraunhofer.ipa.ros</project>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ joy:
joy:
type: "sensor_msgs/msg/Joy"
diagnostics:
type: "diagnostic_msgs/msg/DiagnosticArray"
type: "diagnostic_msgs/msg/DiagnosticArray"
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ scan_2d:
node: scan_2d
publishers:
scan:
type: "sensor_msgs/msg/LaserScan"
type: "sensor_msgs/msg/LaserScan"
diagnostics:
type: "diagnostic_msgs/msg/DiagnosticArray"
type: "diagnostic_msgs/msg/DiagnosticArray"
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ teleop:
type: "geometry_msgs/msg/Twist"
subscribers:
joy:
type:"sensor_msgs/msg/Joy"
type:"sensor_msgs/msg/Joy"
Original file line number Diff line number Diff line change
Expand Up @@ -5,62 +5,62 @@ my_awesome2_pkg:
publishers:
awesome2_pub:
type: "std_msgs/msg/Bool"
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: default_qos
reliability: best_effort
reliability: best_effort
subscribers:
awesome2_sub:
type: "std_msgs/msg/Bool"
qos:
qos:
depth: 10
durability: transient_local
history: keep_last
profile: sensor_qos
reliability: reliable
reliability: reliable
serviceclients:
awesome2_client:
type: "std_srvs/srv/Empty"
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: services_qos
reliability: best_effort
reliability: best_effort
serviceservers:
awesome2_server:
type: "std_srvs/srv/Empty"
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: services_qos
reliability: best_effort
reliability: best_effort
actionclients:
awesome2_action_client:
type: "control_msgs/action/JointTrajectory"
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: default_qos
reliability: best_effort
reliability: best_effort
actionservers:
awesome2_action:
type: "control_msgs/action/JointTrajectory"
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: default_qos
reliability: best_effort
reliability: best_effort
parameters:
awesome2_string_param:
type: String
default: "Hello"
qos:
qos:
depth: 10
durability: volatile
history: keep_all
Expand All @@ -69,15 +69,15 @@ my_awesome2_pkg:
awesome2_bool_param:
type: Boolean
default: true
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: parameter_qos
reliability: best_effort
awesome2_array_param:
type: Array[String]
qos:
qos:
depth: 10
durability: volatile
history: keep_all
Expand All @@ -86,7 +86,7 @@ my_awesome2_pkg:
awesome2_double_param:
type: Double
default: 1.1
qos:
qos:
depth: 10
durability: volatile
history: keep_all
Expand All @@ -95,18 +95,18 @@ my_awesome2_pkg:
awesome2_integer_param:
type: Integer
default: 1
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: parameter_qos
reliability: best_effort
awesome2_struct_param:
type: Struct [first Integer, second Boolean]
value: [
value: [
first: 1
second: true]
qos:
qos:
depth: 10
durability: volatile
history: keep_all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ my_awesome_pkg:
parameters:
awesome_param:
type: String
default: "Hello"
default: "Hello"
Original file line number Diff line number Diff line change
Expand Up @@ -5,62 +5,62 @@ my_awesome_pkg:
publishers:
awesome_pub:
type: "std_msgs/msg/Bool"
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: default_qos
reliability: best_effort
reliability: best_effort
subscribers:
awesome_sub:
type: "std_msgs/msg/Bool"
qos:
qos:
depth: 10
durability: transient_local
history: keep_last
profile: sensor_qos
reliability: reliable
reliability: reliable
serviceclients:
awesome_client:
type: "std_srvs/srv/Empty"
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: services_qos
reliability: best_effort
reliability: best_effort
serviceservers:
awesome_server:
type: "std_srvs/srv/Empty"
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: services_qos
reliability: best_effort
reliability: best_effort
actionclients:
awesome_action_client:
type: "control_msgs/action/JointTrajectory"
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: default_qos
reliability: best_effort
reliability: best_effort
actionservers:
awesome_action:
type: "control_msgs/action/JointTrajectory"
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: default_qos
reliability: best_effort
reliability: best_effort
parameters:
awesome_string_param:
type: String
default: "Hello"
qos:
qos:
depth: 10
durability: volatile
history: keep_all
Expand All @@ -69,15 +69,15 @@ my_awesome_pkg:
awesome_bool_param:
type: Boolean
default: true
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: parameter_qos
reliability: best_effort
awesome_array_param:
type: Array[String]
qos:
qos:
depth: 10
durability: volatile
history: keep_all
Expand All @@ -86,7 +86,7 @@ my_awesome_pkg:
awesome_double_param:
type: Double
default: 1.1
qos:
qos:
depth: 10
durability: volatile
history: keep_all
Expand All @@ -95,18 +95,18 @@ my_awesome_pkg:
awesome_integer_param:
type: Integer
default: 1
qos:
qos:
depth: 10
durability: volatile
history: keep_all
profile: parameter_qos
reliability: best_effort
awesome_struct_param:
type: Struct [first Integer, second Boolean]
value: [
value: [
first: 1
second: true]
qos:
qos:
depth: 10
durability: volatile
history: keep_all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ my_awesome_system:
process1:
nodes: [ node1 , node2 ]
threads: 2
subSystems:
my_subsystem
subSystems:
my_subsystem
nodes:
node1:
from: "my_awesome_pkg.awesome_node" #From .ros2 file
Expand Down
Loading