From c1c25a016fd83fcf751dafd8ffe9b872510aaeaf Mon Sep 17 00:00:00 2001 From: jerger Date: Fri, 27 Jan 2023 10:47:01 +0100 Subject: [PATCH] fix flake8 --- .gitlab-ci.yml | 10 +++++----- dda_python_terraform/terraform.py | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c94f696..d72c50e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,21 +16,21 @@ flake8: stage: lint allow_failure: true script: - - flake8 --max-line-length=120 --count --select=E9,F63,F7,F82 --show-source --statistics python_terraform/*.py - - flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics python_terraform/*.py + - flake8 --max-line-length=120 --count --select=E9,F63,F7,F82 --show-source --statistics dda_python_terraform/*.py + - flake8 --count --exit-zero --max-complexity=13 --max-line-length=127 --statistics --ignore F401 dda_python_terraform/*.py mypy: stage: lint allow_failure: true script: - - python -m mypy python_terraform/terraform.py - - python -m mypy python_terraform/tfstate.py + - python -m mypy dda_python_terraform/terraform.py + - python -m mypy dda_python_terraform/tfstate.py pylint: stage: lint allow_failure: true script: - - pylint -d C0301 python_terraform/*.py + - pylint -d C0301 dda_python_terraform/*.py test-0.13.7: diff --git a/dda_python_terraform/terraform.py b/dda_python_terraform/terraform.py index bea4dbc..d9bbedf 100644 --- a/dda_python_terraform/terraform.py +++ b/dda_python_terraform/terraform.py @@ -453,7 +453,7 @@ class Terraform: filter( lambda workspace: len(workspace) > 0, map( - lambda workspace: workspace.strip('*').strip(), + lambda workspace: workspace.strip('*').strip(), (self.cmd(global_opts, "workspace", "list")[1] or '').split() ) ) @@ -545,7 +545,6 @@ class Terraform: return wrapper - class VariableFiles: def __init__(self): self.files = []