From 66d3634707f20909a3480be9c77a0b133d31d964 Mon Sep 17 00:00:00 2001 From: <> Date: Wed, 21 Aug 2024 12:06:19 +0000 Subject: [PATCH] Deployed 6b4e3cf with MkDocs version: 1.6.0 --- .nojekyll | 0 404.html | 546 ++ CONTRIBUTING/index.html | 972 +++ assets/_mkdocstrings.css | 119 + assets/images/favicon.png | Bin 0 -> 1870 bytes assets/javascripts/bundle.471ce7a9.min.js | 29 + assets/javascripts/bundle.471ce7a9.min.js.map | 7 + assets/javascripts/lunr/min/lunr.ar.min.js | 1 + assets/javascripts/lunr/min/lunr.da.min.js | 18 + assets/javascripts/lunr/min/lunr.de.min.js | 18 + assets/javascripts/lunr/min/lunr.du.min.js | 18 + assets/javascripts/lunr/min/lunr.el.min.js | 1 + assets/javascripts/lunr/min/lunr.es.min.js | 18 + assets/javascripts/lunr/min/lunr.fi.min.js | 18 + assets/javascripts/lunr/min/lunr.fr.min.js | 18 + assets/javascripts/lunr/min/lunr.he.min.js | 1 + assets/javascripts/lunr/min/lunr.hi.min.js | 1 + assets/javascripts/lunr/min/lunr.hu.min.js | 18 + assets/javascripts/lunr/min/lunr.hy.min.js | 1 + assets/javascripts/lunr/min/lunr.it.min.js | 18 + assets/javascripts/lunr/min/lunr.ja.min.js | 1 + assets/javascripts/lunr/min/lunr.jp.min.js | 1 + assets/javascripts/lunr/min/lunr.kn.min.js | 1 + assets/javascripts/lunr/min/lunr.ko.min.js | 1 + assets/javascripts/lunr/min/lunr.multi.min.js | 1 + assets/javascripts/lunr/min/lunr.nl.min.js | 18 + assets/javascripts/lunr/min/lunr.no.min.js | 18 + assets/javascripts/lunr/min/lunr.pt.min.js | 18 + assets/javascripts/lunr/min/lunr.ro.min.js | 18 + assets/javascripts/lunr/min/lunr.ru.min.js | 18 + assets/javascripts/lunr/min/lunr.sa.min.js | 1 + .../lunr/min/lunr.stemmer.support.min.js | 1 + assets/javascripts/lunr/min/lunr.sv.min.js | 18 + assets/javascripts/lunr/min/lunr.ta.min.js | 1 + assets/javascripts/lunr/min/lunr.te.min.js | 1 + assets/javascripts/lunr/min/lunr.th.min.js | 1 + assets/javascripts/lunr/min/lunr.tr.min.js | 18 + assets/javascripts/lunr/min/lunr.vi.min.js | 1 + assets/javascripts/lunr/min/lunr.zh.min.js | 1 + assets/javascripts/lunr/tinyseg.js | 206 + assets/javascripts/lunr/wordcut.js | 6708 +++++++++++++++++ .../workers/search.b8dbb3d2.min.js | 42 + .../workers/search.b8dbb3d2.min.js.map | 7 + assets/logo.png | Bin 0 -> 329878 bytes assets/stylesheets/main.3cba04c6.min.css | 1 + assets/stylesheets/main.3cba04c6.min.css.map | 1 + assets/stylesheets/palette.06af60db.min.css | 1 + .../stylesheets/palette.06af60db.min.css.map | 1 + checks/checks_catalog/index.html | 1556 ++++ checks/checks_manifest/index.html | 6204 +++++++++++++++ checks/checks_run_results/index.html | 1042 +++ checks/index.html | 697 ++ cli/index.html | 634 ++ config_file/index.html | 644 ++ getting_started/index.html | 754 ++ index.html | 690 ++ objects.inv | 9 + search/search_index.json | 1 + sitemap.xml | 3 + sitemap.xml.gz | Bin 0 -> 127 bytes 60 files changed, 21161 insertions(+) create mode 100644 .nojekyll create mode 100644 404.html create mode 100644 CONTRIBUTING/index.html create mode 100644 assets/_mkdocstrings.css create mode 100644 assets/images/favicon.png create mode 100644 assets/javascripts/bundle.471ce7a9.min.js create mode 100644 assets/javascripts/bundle.471ce7a9.min.js.map create mode 100644 assets/javascripts/lunr/min/lunr.ar.min.js create mode 100644 assets/javascripts/lunr/min/lunr.da.min.js create mode 100644 assets/javascripts/lunr/min/lunr.de.min.js create mode 100644 assets/javascripts/lunr/min/lunr.du.min.js create mode 100644 assets/javascripts/lunr/min/lunr.el.min.js create mode 100644 assets/javascripts/lunr/min/lunr.es.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.he.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hu.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hy.min.js create mode 100644 assets/javascripts/lunr/min/lunr.it.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ja.min.js create mode 100644 assets/javascripts/lunr/min/lunr.jp.min.js create mode 100644 assets/javascripts/lunr/min/lunr.kn.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ko.min.js create mode 100644 assets/javascripts/lunr/min/lunr.multi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.nl.min.js create mode 100644 assets/javascripts/lunr/min/lunr.no.min.js create mode 100644 assets/javascripts/lunr/min/lunr.pt.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ro.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ru.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sa.min.js create mode 100644 assets/javascripts/lunr/min/lunr.stemmer.support.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sv.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ta.min.js create mode 100644 assets/javascripts/lunr/min/lunr.te.min.js create mode 100644 assets/javascripts/lunr/min/lunr.th.min.js create mode 100644 assets/javascripts/lunr/min/lunr.tr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.vi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.zh.min.js create mode 100644 assets/javascripts/lunr/tinyseg.js create mode 100644 assets/javascripts/lunr/wordcut.js create mode 100644 assets/javascripts/workers/search.b8dbb3d2.min.js create mode 100644 assets/javascripts/workers/search.b8dbb3d2.min.js.map create mode 100644 assets/logo.png create mode 100644 assets/stylesheets/main.3cba04c6.min.css create mode 100644 assets/stylesheets/main.3cba04c6.min.css.map create mode 100644 assets/stylesheets/palette.06af60db.min.css create mode 100644 assets/stylesheets/palette.06af60db.min.css.map create mode 100644 checks/checks_catalog/index.html create mode 100644 checks/checks_manifest/index.html create mode 100644 checks/checks_run_results/index.html create mode 100644 checks/index.html create mode 100644 cli/index.html create mode 100644 config_file/index.html create mode 100644 getting_started/index.html create mode 100644 index.html create mode 100644 objects.inv create mode 100644 search/search_index.json create mode 100644 sitemap.xml create mode 100644 sitemap.xml.gz diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/404.html b/404.html new file mode 100644 index 00000000..d2cb2975 --- /dev/null +++ b/404.html @@ -0,0 +1,546 @@ + + + +
+ + + + + + + + + + + + + + +dbt-bouncer
dbt-bouncer
is open source software. Whether you are a seasoned open source contributor or a first-time committer, we welcome and encourage you to contribute code, documentation, ideas, or problem statements to this project.
There are many ways to contribute to the ongoing development of dbt-bouncer
, such as by participating in discussions and issues.
The rest of this document serves as a more granular guide for contributing code changes to dbt-bouncer
(this repository). It is not intended as a guide for using dbt-bouncer
, and some pieces assume a level of familiarity with Python development (virtualenvs, Poetry
, etc). Specific code snippets in this guide assume you are using macOS or Linux and are comfortable with the command line.
If you get stuck, we're happy to help! Just open an issue or draft PR and we'll do our best to help out.
+main
branch (default).You will need git
in order to download and modify the dbt-bouncer
source code. On macOS, the best way to download git is to just install Xcode.
You can contribute to dbt-bouncer
by forking the dbt-bouncer
repository. For a detailed overview on forking, check out the GitHub docs on forking. In short, you will need to:
dbt-bouncer
repository.godatadriven/dbt-bouncer
from your forked repository.There are some tools that will be helpful to you in developing locally. While this is the list relevant for dbt-bouncer
development, many of these tools are used commonly across open-source python projects.
These are the tools used in dbt-bouncer
development and testing:
black
for code formatting.click
to create our CLI interface.dbt-bouncer
repository.make
to run multiple setup or test steps in combination.mypy
for static type checking.Poetry
to manage our python virtual environment.pre-commit
to easily run those checks.Pydantic
to validate our configuration file.pytest
to define, discover, and run tests.A deep understanding of these tools in not required to effectively contribute to dbt-bouncer
, but we recommend checking out the attached documentation if you're interested in learning more about each one.
We strongly recommend using virtual environments when developing code in dbt-bouncer
. We recommend creating this virtualenv in the root of the dbt-bouncer
repository. To create a new virtualenv, run:
This will create a new Python virtual environment.
+Set required environment variables by copying .env.example
to .env
and updating the values.
dbt-bouncer
in developmentFirst make sure that you set up your virtualenv
as described in Setting up an environment. Next, install dbt-bouncer
, its dependencies and pre-commit
:
When installed in this way, any changes you make to your local copy of the source code will be reflected immediately in your next dbt-bouncer
run.
dbt-bouncer
With your virtualenv activated, the dbt-bouncer
script should point back to the source code you've cloned on your machine. You can verify this by running which dbt-bouncer
. This command should show you a path to an executable in your virtualenv. You can run dbt-bouncer
using the provided example configuration file via:
Once you're able to manually test that your code change is working as expected, it's important to run existing automated tests, as well as adding some new ones. These tests will ensure that: +- Your code changes do not unexpectedly break other established functionality +- Your code changes can handle all known edge cases +- The functionality you're adding will keep working in the future
+dbt_project
then you will need to re-generate the dbt artifacts used in testing. To do so, run:There are a few methods for running tests locally.
+makefile
There are multiple targets in the makefile
to run common test suites, most notably:
# Runs unit tests
+make test-unit
+
+# Runs integration tests
+make test-integration
+
+# Runs all tests
+make test
+
pre-commit
pre-commit
takes care of running all code-checks for formatting and linting. Run poetry run pre-commit install
to install pre-commit
in your local environment. Once this is done you can use the git pre-commit hooks to ensure proper formatting and linting.
pytest
Finally, you can also run a specific test or group of tests using pytest
directly. With a virtualenv active and dev dependencies installed you can do things like:
# run all unit tests in a file
+poetry run pytest ./tests/unit/checks/catalog/test_columns.py
+
+# run a specific unit test
+poetry run pytest ./tests/unit/checks/catalog/test_columns.py::test_check_columns_are_documented_in_public_models
+
++See pytest usage docs for an overview of useful command-line options.
+
# type: ignore
to the end of a line if you need to disable mypy
on that line.Code can be merged into the current development branch main
by opening a pull request. If the proposal looks like it's on the right track, then a dbt-bouncer
maintainer will review the PR. They may suggest code revision for style or clarity, or request that you add unit or integration test(s). These are good things! We believe that, with a little bit of help, anyone can contribute high-quality code. Once merged, your contribution will be available for the next release of dbt-bouncer
.
Automated tests run via GitHub Actions. If you're a first-time contributor, all tests will require a maintainer to approve.
+Once all tests are passing and your PR has been approved, a dbt-bouncer
maintainer will merge your changes into the active development branch. And that's it! Happy developing :tada: