add some more linting
This commit is contained in:
parent
6048bf41d5
commit
de7feeee19
1 changed files with 17 additions and 1 deletions
|
@ -6,13 +6,29 @@ before_script:
|
||||||
- pip install -r dev_requirements.txt
|
- pip install -r dev_requirements.txt
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- lint
|
||||||
- test
|
- test
|
||||||
|
|
||||||
flake8:
|
flake8:
|
||||||
stage: test
|
stage: lint
|
||||||
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
- flake8 --max-line-length=120 python_terraform/*.py
|
- 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:
|
pytest:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
|
|
Loading…
Reference in a new issue