Skip to content

Commit fbcd3d0

Browse files
committed
build: add CI action to use ruff
1 parent 202cd03 commit fbcd3d0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
linters:
9+
name: Linters
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python
14+
id: setup-python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.12'
18+
- run: pip3 install homeassistant
19+
- run: pip3 install ruff
20+
- run: ruff check
21+
- run: ruff format

0 commit comments

Comments
 (0)