Replace pylint with ruff (#5987)

This commit is contained in:
Chenlei Hu
2024-12-09 19:04:23 -08:00
committed by GitHub
parent 23827ca312
commit a220d11e6b
4 changed files with 339 additions and 335 deletions

23
.github/workflows/ruff.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Python Linting
on: [push, pull_request]
jobs:
ruff:
name: Run Ruff
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install Ruff
run: pip install ruff
- name: Run Ruff
run: ruff check .