Skip to content

Commit

Permalink
build: add github action to run ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
infinitewarp committed Apr 30, 2024
1 parent c4ab40f commit 78d3750
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PR validation

on: [pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install poetry
run: pipx install poetry

- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.12"
cache: "poetry"
cache-dependency-path: "poetry.lock"

- name: Install dependencies
run: poetry install

- name: Run code linters
run: |
poetry run ruff check discobuilder
poetry run ruff format --check discobuilder

0 comments on commit 78d3750

Please sign in to comment.