diff --git a/.github/workflows/linters-tests.yml b/.github/workflows/linters-tests.yml index bd96a27..31d9557 100644 --- a/.github/workflows/linters-tests.yml +++ b/.github/workflows/linters-tests.yml @@ -1,5 +1,5 @@ name: Tests -on: pull_request +on: push jobs: linters: diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml new file mode 100644 index 0000000..41e8536 --- /dev/null +++ b/.github/workflows/linters.yml @@ -0,0 +1,23 @@ +name: Linters +on: push + +jobs: + linters: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Install dependencies + run: | + pip install poetry + poetry config virtualenvs.create false + poetry install --no-root + + - name: Black + run: black --check dbt_coverage diff --git a/dbt_coverage/__init__.py b/dbt_coverage/__init__.py index ae8af6f..c357ae8 100644 --- a/dbt_coverage/__init__.py +++ b/dbt_coverage/__init__.py @@ -422,7 +422,7 @@ def to_dict(self): } elif self.entity_type == CoverageReport.EntityType.CATALOG: return { - "cov_type": self.cov_type.value, + "cov_type": self.cov_type.value, "covered": len(self.covered), "total": len(self.total), "coverage": self.coverage,