Expand Python pre-commit hook to auto-apply suggestions #341
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Install system hooks | |
run: sudo apt update && sudo apt install -qq ament-cmake-uncrustify ament-lint | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] | |
- name: Check used topics | |
run: ./scripts/check-used-topics.py |