Add linters
This commit is contained in:
parent
a64d17b2e8
commit
dd68fd4ead
@ -1,3 +1,31 @@
|
|||||||
|
---
|
||||||
|
run pylint:
|
||||||
|
stage: test
|
||||||
|
image: python:3.9
|
||||||
|
script:
|
||||||
|
- pip install --upgrade pylint
|
||||||
|
- pylint $(git ls-files '*.py')
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
run flake8:
|
||||||
|
stage: test
|
||||||
|
image: python:3.9
|
||||||
|
script:
|
||||||
|
- pip install --upgrade flake8
|
||||||
|
- flake8 $(git ls-files '*.py')
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
run mypy:
|
||||||
|
stage: test
|
||||||
|
image: python:3.9
|
||||||
|
script:
|
||||||
|
- pip install --upgrade mypy
|
||||||
|
- mypy --install-types --non-interactive $(git ls-files '*.py')
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
run tests:
|
run tests:
|
||||||
stage: test
|
stage: test
|
||||||
image: python:3.9
|
image: python:3.9
|
||||||
|
Loading…
x
Reference in New Issue
Block a user