-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding contributing doc and pre-commit (#73)
* Adding contributing doc and pre-commit * chore: add pre-commit to dev dependencies * Switching black pre-commit repo * Moving isort configs to pyproject.toml * Running CI jobs in parallel * Renaming workflow file * Moving isort configs to pyproject.toml * docs(changelog): add contributing guide and pre-commit * fix(linters): tox.ini * Adding command to install Poetry --------- Co-authored-by: Andrej Švec <[email protected]>
- Loading branch information
1 parent
b3ef7b5
commit 87c05b0
Showing
10 changed files
with
204 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: check-added-large-files | ||
- id: check-json | ||
- id: check-ast | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: check-yaml | ||
args: [--unsafe] | ||
- id: debug-statements | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.13.2 # Use the same version as in pyproject.toml | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 24.2.0 # Use the same version as in pyproject.toml | ||
hooks: | ||
- id: black | ||
name: Run black formatter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ option. | |
|
||
Compute coverage from `target/catalog.json` and `target/manifest.json` files | ||
found in a dbt project, e.g. | ||
[jaffle_shop](https://github.com/dbt-labs/jaffle_shop). | ||
[jaffle_shop](https://github.com/dbt-labs/jaffle_shop). | ||
|
||
To choose between documentation and test coverage, pass `doc` or `test` as the CLI argument. | ||
|
||
|
@@ -194,10 +194,10 @@ Misses 23 24 +1/+0 | |
|
||
# New misses | ||
========================================================================= | ||
Catalog 15/38 (39.47%) -> 15/39 (38.46%) | ||
Catalog 15/38 (39.47%) -> 15/39 (38.46%) | ||
========================================================================= | ||
- jaffle_shop.customers 6/7 (85.71%) -> 6/8 (75.00%) | ||
-- new_col -/- (-) -> 0/1 (0.00%) | ||
- jaffle_shop.customers 6/7 (85.71%) -> 6/8 (75.00%) | ||
-- new_col -/- (-) -> 0/1 (0.00%) | ||
========================================================================= | ||
``` | ||
|
||
|
@@ -235,6 +235,23 @@ the support matrix. | |
- [interrogate](https://interrogate.readthedocs.io/en/latest/) (docs coverage for Python) | ||
- [coverage.py](https://github.com/nedbat/coveragepy) (execution coverage for Python) | ||
|
||
## Contributing | ||
|
||
Clone this repo including submodules, create a virtual environment and install dependencies: | ||
```bash | ||
git clone --recurse-submodules [email protected]:slidoapp/dbt-coverage.git | ||
cd dbt-coverage | ||
pip install poetry | ||
poetry shell | ||
poetry install | ||
pre-commit install | ||
``` | ||
|
||
To run all integration tests locally, run: | ||
```bash | ||
tox | ||
``` | ||
|
||
## License | ||
|
||
Licensed under the MIT license (see [LICENSE.md](LICENSE.md) file for more | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.