Use autopep8 as python formatter on pre-commit (#5)

Closes #3

---------

Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
This commit is contained in:
Daijiro Fukuda 2025-07-22 17:28:56 +09:00 committed by GitHub
parent 1120af2e31
commit 6dcadf54de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -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"

View File

@ -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",