Use autopep8 as python formatter on pre-commit (#5)
Closes #3 --------- Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
This commit is contained in:
parent
1120af2e31
commit
6dcadf54de
@ -17,3 +17,11 @@ repos:
|
|||||||
rev: v0.6.13
|
rev: v0.6.13
|
||||||
hooks:
|
hooks:
|
||||||
- id: cmake-format
|
- id: cmake-format
|
||||||
|
- repo: https://github.com/hhatto/autopep8
|
||||||
|
rev: v2.3.2
|
||||||
|
hooks:
|
||||||
|
- id: autopep8
|
||||||
|
alias: python
|
||||||
|
args:
|
||||||
|
- "--ignore-local-config"
|
||||||
|
- "--in-place"
|
||||||
|
|||||||
@ -56,13 +56,13 @@ def robot_state_publisher_spawner(context: LaunchContext, arm_type, ee_type, bim
|
|||||||
|
|
||||||
def rviz_spawner(context: LaunchContext, bimanual):
|
def rviz_spawner(context: LaunchContext, bimanual):
|
||||||
bimanual_str = context.perform_substitution(bimanual)
|
bimanual_str = context.perform_substitution(bimanual)
|
||||||
|
|
||||||
rviz_config_file = "bimanual.rviz" if bimanual_str.lower() == "true" else "arm_only.rviz"
|
rviz_config_file = "bimanual.rviz" if bimanual_str.lower() == "true" else "arm_only.rviz"
|
||||||
rviz_config_path = os.path.join(
|
rviz_config_path = os.path.join(
|
||||||
get_package_share_directory("openarm_description"),
|
get_package_share_directory("openarm_description"),
|
||||||
"rviz", rviz_config_file
|
"rviz", rviz_config_file
|
||||||
)
|
)
|
||||||
|
|
||||||
return [
|
return [
|
||||||
Node(
|
Node(
|
||||||
package="rviz2",
|
package="rviz2",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user