diff options
| author | jvoisin | 2018-07-23 23:42:56 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-23 23:55:45 +0200 |
| commit | 7697f9c08514fdeb43fab738c98ee70b6a7f9a4e (patch) | |
| tree | 7b04e6a9716d49a751443e29938bca63c8cf5659 /.gitlab-ci.yml | |
| parent | e9200835590641c277784159f25ab4464c515a17 (diff) | |
Improve the linters' coverage
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c14f4d1..209a829 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
| @@ -9,6 +9,8 @@ bandit: | |||
| 9 | script: # TODO: remove B405 and B314 | 9 | script: # TODO: remove B405 and B314 |
| 10 | - apt-get -qqy update | 10 | - apt-get -qqy update |
| 11 | - apt-get -qqy install --no-install-recommends python3-bandit | 11 | - apt-get -qqy install --no-install-recommends python3-bandit |
| 12 | - bandit ./mat2 --format txt | ||
| 13 | - bandit -r ./nautilus/ --format txt | ||
| 12 | - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314 | 14 | - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314 |
| 13 | 15 | ||
| 14 | pylint: | 16 | pylint: |
| @@ -16,14 +18,16 @@ pylint: | |||
| 16 | script: | 18 | script: |
| 17 | - apt-get -qqy update | 19 | - 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 | 20 | - 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 | 21 | - pylint3 --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2 |
| 22 | # Once nautilus-python is in Debian, decomment it form the line below | ||
| 23 | - pylint3 --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/nautilus_mat2.py | ||
| 20 | 24 | ||
| 21 | pyflakes: | 25 | pyflakes: |
| 22 | stage: linting | 26 | stage: linting |
| 23 | script: | 27 | script: |
| 24 | - apt-get -qqy update | 28 | - apt-get -qqy update |
| 25 | - apt-get -qqy install --no-install-recommends pyflakes3 | 29 | - apt-get -qqy install --no-install-recommends pyflakes3 |
| 26 | - pyflakes3 ./libmat2 ./mat2 ./tests/ | 30 | - pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus |
| 27 | 31 | ||
| 28 | mypy: | 32 | mypy: |
| 29 | stage: linting | 33 | stage: linting |
| @@ -32,6 +36,7 @@ mypy: | |||
| 32 | - apt-get -qqy install --no-install-recommends python3-pip | 36 | - apt-get -qqy install --no-install-recommends python3-pip |
| 33 | - pip3 install mypy | 37 | - pip3 install mypy |
| 34 | - mypy mat2 libmat2/*.py --ignore-missing-imports | 38 | - mypy mat2 libmat2/*.py --ignore-missing-imports |
| 39 | - mypy --ignore-missing-imports ./nautilus/nautilus_mat2.py | ||
| 35 | 40 | ||
| 36 | tests:debian: | 41 | tests:debian: |
| 37 | stage: test | 42 | stage: test |
