From de7feeee196950e4702c4acbdb931d1eb1e838f5 Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 15 Oct 2021 17:07:06 +0200 Subject: [PATCH] add some more linting --- .gitlab-ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c8f385e..b7d0a28 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,13 +6,29 @@ before_script: - pip install -r dev_requirements.txt stages: + - lint - test flake8: - stage: test + stage: lint + allow_failure: true script: - flake8 --max-line-length=120 python_terraform/*.py +mypy: + stage: lint + allow_failure: true + script: + - python -m mypy python_terraform/terraform.py + - python -m mypy python_terraform/tfstate.py + +pylint: + stage: lint + allow_failure: true + script: + - pylint -d C0301 python_terraform/*.py + + pytest: stage: test script: