Skip to content

Commit

Permalink
use ruff action
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak committed Sep 22, 2024
1 parent 8bbb265 commit eeb978c
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,24 @@ on:
permissions: { }

jobs:
build:
lint:
name: Lint Code Base
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write

steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Lint Code Base
uses: super-linter/super-linter/slim@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false
VALIDATE_PYTHON_RUFF: true
LINTER_RULES_PATH: /
PYTHON_RUFF_CONFIG_FILE: "pyproject.toml"
- name: Ruff check
uses: chartboost/ruff-action@v1
with:
args: "check"
changed-files: "true"

- name: Ruff format
uses: chartboost/ruff-action@v1
with:
args: "format"
changed-files: "true"

0 comments on commit eeb978c

Please sign in to comment.