diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 1481913..296c506 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -47,7 +47,5 @@ jobs: - name: Check python formatting id: lint run: | - echo '[pep8]' > pep8 - echo 'indent-size = 2' >> pep8 - autopep8 --diff --global-config pep8 --recursive --exit-code \ + yapf --diff --recursive --parallel \ *.py test diff --git a/.style.yapf b/.style.yapf new file mode 100644 index 0000000..86926ff --- /dev/null +++ b/.style.yapf @@ -0,0 +1,4 @@ +[style] +based_on_style=google +indent_width=2 +split_before_named_assigns=false \ No newline at end of file diff --git a/DEV-REQUIREMENTS.txt b/DEV-REQUIREMENTS.txt index 3368830..9c6e94c 100644 --- a/DEV-REQUIREMENTS.txt +++ b/DEV-REQUIREMENTS.txt @@ -1,2 +1,2 @@ -autopep8>=2.0 +yapf>=0.40 pytest>=7.2 \ No newline at end of file diff --git a/README.md b/README.md index 66ca837..10e6377 100644 --- a/README.md +++ b/README.md @@ -46,38 +46,6 @@ def test_modules(plan): assert res['values']['location'] == plan.variables['gcs_location'] ``` -## Terragrunt support - -Support for Terragrunt actually follows the same principle of the thin `TerraformTest` wrapper. - -Please see the following example for how to use it: - -```python -import pytest -import tftest - - -@pytest.fixture -def run_all_apply_out(fixtures_dir): - # notice for run-all, you need to specify when TerragruntTest is constructed - tg = tftest.TerragruntTest('tg_apply_all', fixtures_dir, tg_run_all=True) - # the rest is very similar to how you use TerraformTest - tg.setup() - # to use --terragrunt-