Commit abe1941a authored by mathieui's avatar mathieui

CI: add a linting stage, and put mypy in there

Obviously failing at the moment.
parent 80a7babc
Pipeline #2563 failed with stages
in 2 minutes and 11 seconds
stages: stages:
- lint
- test - test
- build - build
...@@ -31,7 +32,7 @@ build-ubuntu: ...@@ -31,7 +32,7 @@ build-ubuntu:
- master - master
security-check: security-check:
stage: test stage: lint
image: python:3 image: python:3
script: script:
- pip3 install safety - pip3 install safety
...@@ -78,7 +79,7 @@ pytest-latest: ...@@ -78,7 +79,7 @@ pytest-latest:
- py.test -v test/ - py.test -v test/
pylint-latest: pylint-latest:
stage: test stage: lint
image: python:3 image: python:3
script: script:
- apt-get update && apt-get install -y libidn11-dev - apt-get update && apt-get install -y libidn11-dev
...@@ -91,7 +92,7 @@ pylint-latest: ...@@ -91,7 +92,7 @@ pylint-latest:
- pylint -E poezio - pylint -E poezio
pylint-plugins: pylint-plugins:
stage: test stage: lint
image: python:3 image: python:3
allow_failure: true allow_failure: true
script: script:
...@@ -101,3 +102,11 @@ pylint-plugins: ...@@ -101,3 +102,11 @@ pylint-plugins:
- pip3 install -r requirements-plugins.txt - pip3 install -r requirements-plugins.txt
- python3 setup.py install - python3 setup.py install
- pylint -E plugins - pylint -E plugins
mypyc:
stage: lint
image: python:3
allow_failure: true
script:
- pip3 install mypy
- mypyc --ignore-missing-imports ./poezio
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment