Skip to content

Commit

Permalink
chore: fix ruff and run it in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Askir committed Oct 17, 2024
1 parent 108539c commit 3313c9f
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 180 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Ruff Linting and Formatting

on:
pull_request:
branches: [ main ]

jobs:
ruff:
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 uv
run: pip install uv
- name: Create venv
run: uv venv
- name: Install dependencies
run: |
uv pip install .
uv pip install .[dev]
- name: Run Ruff linter
run: uv run ruff check .
- name: Run Ruff formatter
run: uv run ruff format . --check
Loading

0 comments on commit 3313c9f

Please sign in to comment.