hass.tibber_prices/.github/workflows/lint.yml
Julian Pawlowski 131a4eb148
Initial commit
2025-04-18 14:32:54 +02:00

34 lines
707 B
YAML

name: Lint
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
permissions: {}
jobs:
ruff:
name: "Ruff"
runs-on: "ubuntu-latest"
steps:
- name: Checkout the repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
with:
python-version: "3.13"
cache: "pip"
- name: Install requirements
run: python3 -m pip install -r requirements.txt
- name: Lint
run: python3 -m ruff check .
- name: Format
run: python3 -m ruff format . --check