forked from Denaun/philips-airpurifier-coap
-
-
Notifications
You must be signed in to change notification settings - Fork 48
29 lines (26 loc) · 593 Bytes
/
ci.yml
File metadata and controls
29 lines (26 loc) · 593 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
name: Linting
permissions:
contents: read
on:
push:
branches: [master]
paths:
- "**.py"
- "pyproject.toml"
pull_request:
paths:
- "**.py"
- "pyproject.toml"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install ruff
- name: Ruff check
run: ruff check --output-format=github custom_components/ tests/
- name: Ruff format
run: ruff format --check --diff custom_components/ tests/