-
Notifications
You must be signed in to change notification settings - Fork 1.8k
44 lines (40 loc) · 1.15 KB
/
lint.yml
File metadata and controls
44 lines (40 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Lint
on:
pull_request:
jobs:
ament_lint_general:
name: ament_${{ matrix.linter }}
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-noble-ros-rolling-ros-base-latest
strategy:
fail-fast: false
matrix:
linter: [xmllint, cpplint, uncrustify, pep257, flake8, mypy]
steps:
- uses: actions/checkout@v6
- name: Install typeshed for mypy
if: matrix.linter == 'mypy'
run: sudo apt update && sudo apt install -y python3-typeshed
- uses: ros-tooling/action-ros-lint@0.1.4
with:
linter: ${{ matrix.linter }}
distribution: rolling
package-name: "*"
arguments: ${{ matrix.linter == 'mypy' && '--config tools/pyproject.toml' || '' }}
pre-commit:
name: pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
- uses: pre-commit/action@v3.0.1
env:
SKIP: >-
ament_lint_cmake,
ament_cpplint,
ament_uncrustify,
ament_xmllint,
ament_flake8,
ament_pep257,
ament_mypy