Skip to content

Commit

Permalink
Test pre-commit vs black --check
Browse files Browse the repository at this point in the history
  • Loading branch information
sweco committed Feb 22, 2024
1 parent 3e7d13d commit 140c591
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linters-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Tests
on: pull_request
on: push

jobs:
linters:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion dbt_coverage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 140c591

Please sign in to comment.