Skip to content

Commit

Permalink
[ADD] ruff CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
markkua committed Apr 15, 2024
1 parent f4456c4 commit f42b8cb
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pr_ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run code quality check with Ruff

run-name: Checking code quality.
on:
pull_request:
branches:
- main
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
check_code_quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff==0.3.7
- name: Check quality
run: |
ruff check .
ruff format . --check

0 comments on commit f42b8cb

Please sign in to comment.