Skip to content

Commit

Permalink
add pylintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
qidanrui committed Dec 23, 2023
1 parent 0c46c33 commit 75a361e
Show file tree
Hide file tree
Showing 2 changed files with 585 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Pylint

on:
push:
branches: [ main ]
branches:
- main
pull_request:
branches: [ main ]
branches:
- main
workflow_dispatch:

concurrency:
Expand All @@ -13,7 +15,7 @@ concurrency:

jobs:
build:
runs-on: ubuntu-latest
runs-on: [ubuntu-latest, macos-latest, windows-latest]
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
Expand All @@ -26,7 +28,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U black isort
- name: check the code lint
pip install -U black isort pylint
- name: Print tool versions
run: |
black --version
pylint --version
- name: Check if the code is formatted
run: |
black . --check
- name: Style check the project
run: |
pylint dbgpt || true
Loading

0 comments on commit 75a361e

Please sign in to comment.