-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 862 Bytes
/
linter.yml
File metadata and controls
40 lines (31 loc) · 862 Bytes
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
name: Linter & Formatter
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- "**/*.py"
- "pyproject.toml"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ruff_linter:
runs-on: ubuntu-24.04
steps:
- name: Sync repository
uses: eProsima/eProsima-CI/external/checkout@v0
- name: Set up Python
uses: eProsima/eProsima-CI/external/setup-python@v0
with:
python-version: "3.12"
- name: Install Ruff
uses: eProsima/eProsima-CI/ubuntu/install_python_packages@v0
with:
packages: ruff==0.14.13
- name: Ruff format (check)
run: |
ruff format --check .
- name: Ruff lint (check)
run: |
ruff check .