Merge pull request #302 from Pirate-Weather/dependabot/pip/homeassist… #423
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Lint" | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: write | |
jobs: | |
ruff: | |
name: "Ruff" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout the repository" | |
uses: "actions/checkout@v4.1.7" | |
- name: "Set up Python" | |
uses: actions/setup-python@v5.1.1 | |
with: | |
python-version: "3.12.4" | |
cache: "pip" | |
- name: "Install requirements" | |
run: python3 -m pip install -r requirements.txt | |
- name: "Format" | |
run: python3 -m ruff format . | |
- name: "Check" | |
run: python3 -m ruff check . | |
- name: "Auto Commit" | |
uses: stefanzweifel/git-auto-commit-action@v5.0.1 | |
with: | |
commit_message: 'style fixes by ruff' |