diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 2344c1e7..2d6ae3f1 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -13,9 +13,7 @@ jobs: - name: Install apt dependencies run: | apt-get update - apt-get install -y build-essential clang-format file git python3-pip python3-colcon-common-extensions python3-rosdep - - name: Install pip dependencies - run: pip install pre-commit + apt-get install -y build-essential clang-format file git python3-pip python3-colcon-common-extensions python3-rosdep pre-commit - name: Checkout repository uses: actions/checkout@v3 with: diff --git a/README.md b/README.md index c52dd9bf..ccb9d82e 100644 --- a/README.md +++ b/README.md @@ -174,10 +174,10 @@ pre-commit Formatting Checks This repo has a [pre-commit](https://pre-commit.com/) check that runs in CI. You can use this locally and set it up to run automatically before you commit -something. To install, use pip: +something. To install, use apt: ```bash -pip3 install --user pre-commit +sudo apt install pre-commit ``` To run over all the files in the repo manually: