Skip to content

Commit fbd5f3b

Browse files
feat: add pylint for code check
1 parent 1eb22c6 commit fbd5f3b

File tree

3 files changed

+681
-0
lines changed

3 files changed

+681
-0
lines changed

.github/pylint.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Pylint"
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'master'
8+
- 'release-*'
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.10", "3.11"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Setup Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
cache: 'pip'
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -r requirements.txt
30+
pip install pylint
31+
32+
- name: Run Pylint
33+
run: |
34+
pylint --rcfile=.pylintrc baselines/ charts/ graphgen/ models/ templates/ utils/ evaluate.py generate.py

0 commit comments

Comments
 (0)