Skip to content

Commit

Permalink
Replace lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jul 22, 2024
1 parent 8092c1e commit 08939a0
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
name: Lint
name: "Lint"

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

jobs:
black:
name: Black
runs-on: ubuntu-latest
ruff:
name: "Ruff"
runs-on: "ubuntu-latest"
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v2
- name: "Checkout the repository"
uses: "actions/[email protected]"

- name: "Set up Python"
uses: actions/[email protected]
with:
python-version: "3.12"
cache: "pip"

- name: "Install requirements"
run: python3 -m pip install -r requirements.txt

- name: "Lint"
run: python3 -m ruff check .

- name: ⬛ Run Black
uses: psf/black@stable
- name: "Format"
run: python3 -m ruff format . --check

0 comments on commit 08939a0

Please sign in to comment.