diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..0f33f75 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +image: python + +test:pylama: + stage: test + only: + - master + - develop + before_script: + - if test -r requirements.txt; then pip install -r requirements.txt; fi + script: + if test -x "$(which pylama)"; then pylama *.py; fi + +test:pytest: + stage: test + only: + - master + - develop + before_script: + - if test -r requirements.txt; then pip install -r requirements.txt; fi + script: + if test -x "$(which pytest)"; then pytest .; fi + diff --git a/pylama.ini b/pylama.ini index 48d15c9..9e0c88e 100644 --- a/pylama.ini +++ b/pylama.ini @@ -1,14 +1,11 @@ [pylama] format = pylint -linters = mccabe,pep257,pydocstyle,pep8,pycodestyle,pyflakes,pylint,isort +linters = eradicate,isort,mccabe,mypy,pycodestyle,pydocstyle,pyflakes,pylint ignore = D203 skip=.env/* [pylama:pycodestyle] max_line_length = 120 -[pylama:pep8] -max_line_length = 120 - [pylama:pylint] max_line_length = 120