fix python lint

This commit is contained in:
hongbo.mo
2025-10-15 10:55:20 +08:00
parent cd5d69e623
commit 4bbd9b5839
3 changed files with 11 additions and 15 deletions
@@ -1,4 +1,4 @@
name: Pylint
name: Ruff
on: [push]
@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
@@ -17,7 +17,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
pip install ruff
- name: Analysing the code with ruff
run: |
pylint $(git ls-files '*.py')
ruff check . --select F,E,W,C --statistics --ignore E501,C901