We’ve added the autopep8 hook to our `.pre-commit-config.yaml` to enforce a consistent Python style. To verify its behavior without touching every file at once, we’re applying it in-place to depth_camera.launch.py for now because the large number of impacted files there are. The follow-up PR will run autopep8 accross the entire codebase once this initial change passes CI. ref: https://github.com/hhatto/autopep8
24 lines
803 B
YAML
24 lines
803 B
YAML
# Copyright 2025 Reazon Holdings, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
rev: "v20.1.4"
|
|
hooks:
|
|
- id: clang-format
|
|
- repo: https://github.com/hhatto/autopep8
|
|
rev: "v2.3.2"
|
|
hooks:
|
|
- id: autopep8
|