Skip to content

Commit

Permalink
Aggiunta validazione con Ruff nelle GitHub Actions
Browse files Browse the repository at this point in the history
Verifica che il codice sia conforme alla formattazione con Ruff nelle PR o manualmente.
  • Loading branch information
virtualdj committed Jan 4, 2025
1 parent f52786f commit 433d107
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ on:
pull_request_target:
branches:
- master
workflow_dispatch:

jobs:
# validate-ruff:
# name: With Ruff
# runs-on: ubuntu-latest
# steps:
# - name: Check out repository
# uses: actions/checkout@v4
#
# - name: Check ruff
# uses: chartboost/ruff-action@v1
# with:
# args: 'format --diff'
validate-ruff:
name: Validate with ruff
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Check ruff
uses: astral-sh/ruff-action@v3
with:
args: 'format --diff'

validate-hassfest:
name: Validate with hassfest
Expand Down

0 comments on commit 433d107

Please sign in to comment.