Skip to content

Commit

Permalink
Remove local repos from pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed May 15, 2024
1 parent b3424b0 commit 54cf9a8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/industrial_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ on:


jobs:

pre-commit:
name: pre-commit
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-pre-commit.yml@master
with:
ros_distro: humble
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.1

ros_industrial_ci:
name: ROS Industrial CI
Expand Down
35 changes: 18 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,26 @@ repos:
- id: isort
args: [--profile, black]

- repo: local
hooks:
- id: ament_lint_cmake
name: ament_lint_cmake
description: Check format of CMakeLists.txt files.
entry: ament_lint_cmake
language: system
files: CMakeLists\.txt$
# Need to figure out how o check local repos in action
# - repo: local
# hooks:
# - id: ament_lint_cmake
# name: ament_lint_cmake
# description: Check format of CMakeLists.txt files.
# entry: ament_lint_cmake
# language: system
# files: CMakeLists\.txt$

- repo: local
hooks:
- id: ament_copyright
name: ament_copyright
description: Check if copyright notice is available in all files.
stages: [commit]
entry: ament_copyright
language: system
# - repo: local
# hooks:
# - id: ament_copyright
# name: ament_copyright
# description: Check if copyright notice is available in all files.
# stages: [commit]
# entry: ament_copyright
# language: system

# Docs - RestructuredText hooks
# Docs - RestructuredText hooks
- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
hooks:
Expand Down

0 comments on commit 54cf9a8

Please sign in to comment.