Skip to content

Commit 7567cba

Browse files
Add Pylint GitHub action (#154)
* Add Pylint GitHub action In addition to checking for "code quality" (e.g., coding conventions), Pylint can find logical (e.g., calling methods with an incorrect number of arguments) errors. This can help us ensure that the code in the master branch remains in a working state. * Install library Install the Memphis.py library so that we can grab the dependencies to avoid import errors
1 parent 7458b6f commit 7567cba

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pylint.yml

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

0 commit comments

Comments
 (0)