-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (27 loc) · 808 Bytes
/
Copy pathlinting.yml
File metadata and controls
31 lines (27 loc) · 808 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
name: Linting
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Python lint
run: ruff check --output-format=github .
- name: Python include order
run: ruff check --select I --diff .
- name: Python coding style
run: ruff format --check --diff .
- name: YAML lint
run: yamllint --format github custom_components/tuya_local_lawnmowers/devices