1
0
mirror of synced 2024-11-21 16:54:23 +01:00

Add pylint3 to the ci

This commit is contained in:
jvoisin 2018-07-09 01:12:59 +02:00
parent 080d6769ca
commit 22e3918f67
2 changed files with 23 additions and 0 deletions

View File

@ -11,6 +11,13 @@ bandit:
- apt-get -qqy install --no-install-recommends python3-bandit
- bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314
pylint:
stage: linting
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends pylint3 python3-mutagen python3-gi-cairo gir1.2-poppler-0.18 gir1.2-gdkpixbuf-2.0
- pylint3 --extension-pkg-whitelist=cairo,gi ./libmat2
pyflakes:
stage: linting
script:

16
.pylintrc Normal file
View File

@ -0,0 +1,16 @@
[FORMAT]
good-names=e,f,i,x,s
max-locals=20
[MESSAGES CONTROL]
disable=
fixme,
invalid-name,
missing-docstring,
protected-access,
abstract-method,
wrong-import-position,
catching-non-exception,
cell-var-from-loop,
locally-disabled,
invalid-sequence-index, # pylint doesn't like things like `Tuple[int, bytes]` in type annotation