Skip to content

Commit

Permalink
feat: ruff linting pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
j3rrryy committed Nov 23, 2024
1 parent 24f4a1d commit dfb3962
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI/CD

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2

- name: Run Ruff linting and formatting
uses: astral-sh/ruff-action@v1.1.1
with:
args: "check --fix && ruff format ."
changed-files: "true"

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
commit_message: "ruff: fix and apply formatting"

0 comments on commit dfb3962

Please sign in to comment.