From ac80f6e5715e6a1cd63b3d5aee50dc99071c57ba Mon Sep 17 00:00:00 2001 From: "David V. Lu" Date: Wed, 23 Aug 2023 10:50:29 -0400 Subject: [PATCH] Precommit configuration --- .pre-commit-config.yaml | 35 +++++++++++++++++++++++++++++++++++ launch/display.launch.py | 1 + meshes/l_finger.dae | 2 +- meshes/l_finger_tip.dae | 2 +- setup.cfg | 2 ++ 5 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .pre-commit-config.yaml create mode 100644 setup.cfg diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..bbf1668 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,35 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - id: check-merge-conflict + - id: mixed-line-ending + - id: check-executables-have-shebangs + - id: check-shebang-scripts-are-executable + - id: detect-private-key + - id: destroyed-symlinks + - id: check-symlinks + - id: check-case-conflict + - id: check-ast + - id: double-quote-string-fixer + - id: requirements-txt-fixer + - id: check-xml + - id: check-yaml + rev: v4.4.0 +- repo: https://github.com/codespell-project/codespell + hooks: + - id: codespell + args: + - --write-changes + rev: v2.2.5 +- repo: https://github.com/pre-commit/mirrors-autopep8 + hooks: + - id: autopep8 + rev: v2.0.2 +- repo: https://github.com/PyCQA/flake8 + hooks: + - id: flake8 + rev: 6.1.0 +ci: + autoupdate_schedule: quarterly diff --git a/launch/display.launch.py b/launch/display.launch.py index 26c323d..ae80c23 100644 --- a/launch/display.launch.py +++ b/launch/display.launch.py @@ -8,6 +8,7 @@ from launch_ros.actions import Node from launch_ros.parameter_descriptions import ParameterValue + def generate_launch_description(): urdf_tutorial_path = get_package_share_path('urdf_tutorial') default_model_path = urdf_tutorial_path / 'urdf/01-myfirst.urdf' diff --git a/meshes/l_finger.dae b/meshes/l_finger.dae index 4496fe8..243beb2 100644 --- a/meshes/l_finger.dae +++ b/meshes/l_finger.dae @@ -5,7 +5,7 @@ WakiMudi OpenCOLLADA2009 x64 - ColladaMaya export options: + ColladaMaya export options: bakeTransforms=0;relativePaths=0;copyTextures=0;exportTriangles=0;exportCgfxFileReferences=1; isSampling=0;curveConstrainSampling=0;removeStaticCurves=1;exportPolygonMeshes=1;exportLights=1; exportCameras=1;exportJointsAndSkin=1;exportAnimations=1;exportInvisibleNodes=0;exportDefaultCameras=0; diff --git a/meshes/l_finger_tip.dae b/meshes/l_finger_tip.dae index a4b0acd..d4b29ef 100644 --- a/meshes/l_finger_tip.dae +++ b/meshes/l_finger_tip.dae @@ -5,7 +5,7 @@ WakiMudi OpenCOLLADA2009 x64 - ColladaMaya export options: + ColladaMaya export options: bakeTransforms=0;relativePaths=0;copyTextures=0;exportTriangles=0;exportCgfxFileReferences=1; isSampling=0;curveConstrainSampling=0;removeStaticCurves=1;exportPolygonMeshes=1;exportLights=1; exportCameras=1;exportJointsAndSkin=1;exportAnimations=1;exportInvisibleNodes=0;exportDefaultCameras=0; diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..3e8bd8f --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +max_line_length=120