1
0
mirror of synced 2024-11-25 18:54:22 +01:00

Add linting to the CI

This commit is contained in:
jvoisin 2018-05-01 00:01:18 +02:00
parent c4271715e4
commit 459e9b82f7

View File

@ -1,6 +1,25 @@
image: debian image: debian
test: stages:
- linting
- test
bandit:
stage: linting
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends python3-bandit
- bandit -r ./src --format txt --skip B404,B603
pyflakes:
stage: linting
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends pyflakes3
- pyflakes3 ./src
tests:
stage: test
script: script:
- apt-get -qqy update - apt-get -qqy update
- apt-get -qqy install --no-install-recommends python3-mutagen python3-gi-cairo gir1.2-poppler-0.18 gir1.2-gdkpixbuf-2.0 libimage-exiftool-perl python3-coverage - apt-get -qqy install --no-install-recommends python3-mutagen python3-gi-cairo gir1.2-poppler-0.18 gir1.2-gdkpixbuf-2.0 libimage-exiftool-perl python3-coverage