Skip to content

Commit 473da01

Browse files
Run pylint as separate GH action (#193)
... and allow lines to be 100 characters long. This closes #185
1 parent 0955d2e commit 473da01

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@ name: CI
77
on: [push, pull_request]
88

99
jobs:
10+
linter:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.x"]
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt -r test-requirements.txt setuptools
25+
- name: Lint
26+
run: |
27+
pylint --output-format colorized --rcfile .pylintrc \
28+
bugzilla-cli setup.py bugzilla examples tests
29+
1030
build:
1131
# We stick with 20.04 to get access to python 3.6
1232
# https://github.com/actions/setup-python/issues/544

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ score=no
1919

2020
[FORMAT]
2121
# Maximum number of characters on a single line.
22-
max-line-length=80
22+
max-line-length=100
2323

2424
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
2525
# tab).

test-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# additional packages needed for testing
22
pytest
3+
pylint<3.1
4+
pycodestyle<2.12

0 commit comments

Comments
 (0)