diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2300308181f6612426e281e017e443420e56e318..5243c1fd254623336b41c3f64a3db35d58f6617e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,19 @@ variables: - PYTHON_IMAGE: python:3-alpine + PYTHON_IMAGE: python:3.7 + +pylint: + stage: test + image: $PYTHON_IMAGE + script: + - pip3 install -q -r requirements.txt + - pylint --errors-only replicator + +mypy: + stage: test + image: $PYTHON_IMAGE + script: + - pip3 install -q -r requirements.txt + - mypy replicator pytest: stage: test @@ -11,4 +25,4 @@ pytest: paths: - pytest-junit.xml reports: - junit: pytest-junit.xml \ No newline at end of file + junit: pytest-junit.xml diff --git a/requirements.txt b/requirements.txt index 89d2b4df6bcabbc7b6224cbb221c211e5812c350..c77e939722c9f98fe628c05863d931b50e044830 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +astroid==2.3.3 attrs==19.3.0 beautifulsoup4==4.8.1 certifi==2019.11.28 @@ -5,13 +6,19 @@ chardet==3.0.4 coverage==5.0.3 idna==2.8 importlib-metadata==1.5.0 +isort==4.3.21 Jinja2==2.10.3 +lazy-object-proxy==1.4.3 MarkupSafe==1.1.1 +mccabe==0.6.1 mock==4.0.1 more-itertools==8.2.0 +mypy==0.761 +mypy-extensions==0.4.3 packaging==20.1 pluggy==0.13.1 py==1.8.1 +pylint==2.4.4 pyotp==2.3.0 pyparsing==2.4.6 pytest==5.3.5 @@ -21,6 +28,9 @@ python-dateutil==2.8.1 requests==2.22.0 six==1.13.0 soupsieve==1.9.5 +typed-ast==1.4.1 +typing-extensions==3.7.4.1 urllib3==1.25.7 wcwidth==0.1.8 +wrapt==1.11.2 zipp==2.2.0