Skip to content

Commit 3b0ed4c

Browse files
committed
add pylint
1 parent 8612970 commit 3b0ed4c

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/pylint.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Pylint
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
paths:
7+
- '**.py'
8+
- '.github/workflows/pylint.yml'
9+
pull_request:
10+
branches: [ main ]
11+
paths:
12+
- '**.py'
13+
- '.github/workflows/pylint.yml'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
python-version: ["3.10", "3.11"]
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
30+
- name: Install dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install pylint
34+
# Install common dependencies used by the scripts
35+
pip install pandas numpy scikit-learn biopython pysam
36+
37+
- name: Analysing the code with pylint
38+
run: |
39+
pylint $(find bin -name "*.py" -type f) \
40+
--disable=C0114,C0115,C0116 \
41+
--disable=R0913,R0914,R0915 \
42+
--disable=W0612,W0613 \
43+
--max-line-length=120 \
44+
--exit-zero

0 commit comments

Comments
 (0)