diff options
| -rw-r--r-- | .gitlab-ci.yml | 7 | ||||
| -rw-r--r-- | .pylintrc | 16 |
2 files changed, 23 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a5e005c..c14f4d1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
| @@ -11,6 +11,13 @@ bandit: | |||
| 11 | - apt-get -qqy install --no-install-recommends python3-bandit | 11 | - apt-get -qqy install --no-install-recommends python3-bandit |
| 12 | - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314 | 12 | - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314 |
| 13 | 13 | ||
| 14 | pylint: | ||
| 15 | stage: linting | ||
| 16 | script: | ||
| 17 | - apt-get -qqy update | ||
| 18 | - apt-get -qqy install --no-install-recommends pylint3 python3-mutagen python3-gi-cairo gir1.2-poppler-0.18 gir1.2-gdkpixbuf-2.0 | ||
| 19 | - pylint3 --extension-pkg-whitelist=cairo,gi ./libmat2 | ||
| 20 | |||
| 14 | pyflakes: | 21 | pyflakes: |
| 15 | stage: linting | 22 | stage: linting |
| 16 | script: | 23 | script: |
diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000..1f3dc23 --- /dev/null +++ b/.pylintrc | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | [FORMAT] | ||
| 2 | good-names=e,f,i,x,s | ||
| 3 | max-locals=20 | ||
| 4 | |||
| 5 | [MESSAGES CONTROL] | ||
| 6 | disable= | ||
| 7 | fixme, | ||
| 8 | invalid-name, | ||
| 9 | missing-docstring, | ||
| 10 | protected-access, | ||
| 11 | abstract-method, | ||
| 12 | wrong-import-position, | ||
| 13 | catching-non-exception, | ||
| 14 | cell-var-from-loop, | ||
| 15 | locally-disabled, | ||
| 16 | invalid-sequence-index, # pylint doesn't like things like `Tuple[int, bytes]` in type annotation | ||
