Skip to content

Commit aee2f1c

Browse files
committed
feat: add pylint
1 parent 5464971 commit aee2f1c

2 files changed

Lines changed: 659 additions & 0 deletions

File tree

.github/workflows/static-check.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Pylint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
static-check:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-22.04]
11+
python-version: ["3.10"]
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pylint
21+
python -m pip install --upgrade isort
22+
python -m pip install -r requirements.txt
23+
- name: Analysing the code with pylint
24+
run: |
25+
isort $(git ls-files '*.py') --check-only --diff
26+
pylint $(git ls-files '*.py')

0 commit comments

Comments
 (0)