Skip to content

Commit

Permalink
add github action for ruff and black linters
Browse files Browse the repository at this point in the history
  • Loading branch information
noxan committed Dec 13, 2023
1 parent 2dfcdc3 commit de0c600
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Linters

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: ruff
uses: chartboost/ruff-action@v1

black:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: black
uses: psf/black@stable

0 comments on commit de0c600

Please sign in to comment.