From 3ec76b65e8defb2b39108ce2a20fe9b849a4cdc4 Mon Sep 17 00:00:00 2001 From: leej3 Date: Thu, 31 Oct 2024 13:22:16 +0000 Subject: [PATCH] try fix pre-commit --- .github/workflows/tests.yml | 3 +++ osm/schemas/schema_helpers.py | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cf26fabd..1d12fac1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,6 +8,9 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 + - uses: opentofu/setup-opentofu@v1 + - name: Install tflint + run: curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash - uses: pre-commit/action@v3.0.1 tox-tests: runs-on: ubuntu-latest diff --git a/osm/schemas/schema_helpers.py b/osm/schemas/schema_helpers.py index 931099d5..82fccf8b 100644 --- a/osm/schemas/schema_helpers.py +++ b/osm/schemas/schema_helpers.py @@ -175,11 +175,7 @@ def get_data_from_mongo(aggregation: list[dict] | None = None) -> Iterator[dict] if aggregation is None: aggregation = [ { - "$match": { - "metrics_group": { - "$regex": "R" - } - }, + "$match": {"metrics_group": {"$regex": "R"}}, }, { "$project": {