Skip to content

Commit 40bef5b

Browse files
authored
Adding new stage for the CI workflow: running pylint on code base (fmilthaler#101)
No changes to functionality, only adding pylint code quality checks to the CI build. This closes fmilthaler#99
1 parent 99d9ca9 commit 40bef5b

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/pytest.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@v3
2626

2727
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v3
28+
uses: actions/setup-python@v4
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131

@@ -35,4 +35,9 @@ jobs:
3535
python -m pip install .[test]
3636
3737
- name: Run tests
38-
run: make test
38+
run: make test
39+
40+
- name: Analysing the code with pylint
41+
if: ${{ matrix.python-version }} == '3.10'
42+
run: |
43+
pylint --fail-under=9 $(git ls-files '*.py')

requirements_dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
black==23.1.0
2-
pylint
32
mypy
43
isort
54
jupyter

requirements_test.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
pytest>=7.3.2
1+
pytest>=7.3.2
2+
pylint

0 commit comments

Comments
 (0)