Skip to content

Commit

Permalink
chore: use uv and ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtleSmoke committed Dec 4, 2024
1 parent e919a54 commit dcd4676
Show file tree
Hide file tree
Showing 28 changed files with 770 additions and 1,747 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/lint.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Ruff

on:
push:
branches: [ main ]
paths:
- '**.py'
- '.pylintrc'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.10 ]
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Cache Ruff
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-ruff-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-ruff-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Lint with ruff
run: |
ruff check .
ruff format --check .
Loading

0 comments on commit dcd4676

Please sign in to comment.