Skip to main content

Lint your dataform project SQL

Project description

Dataform plugin for SQLFluff

This project is based on dbt plugin for SQLFluff and is licensed under the MIT License.

This plugin works with SQLFluff, the SQL linter for humans, to correctly parse and compile SQL projects using Dataform.

SQLFluff configuration

As dataform uses mainly '.sqlx' files you will need to set the '.sqlfluff' as below:

[sqlfluff]
templater = dataform
dialect = bigquery
sql_file_exts = .sql,.sqlx

Development

With mise installed, run mise install from the repo root once to provision Python, uv, and a .venv directory. The first install fires a postinstall hook that runs mise run sync, which installs the test dependencies into the venv. After that:

mise run test     # run the test suite
mise run sync     # re-install deps after pulling changes to requirements.txt
pytest test/      # or invoke pytest directly (the venv is auto-activated)

The compose.yml / Dockerfile.dev setup remains for those who prefer it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlfluff_templater_dataform-0.1.14.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlfluff_templater_dataform-0.1.14-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file sqlfluff_templater_dataform-0.1.14.tar.gz.

File metadata

File hashes

Hashes for sqlfluff_templater_dataform-0.1.14.tar.gz
Algorithm Hash digest
SHA256 d3f2012c23cc085275ca4063fc0c8aede92d0f126ef47db09cba70740b152f89
MD5 dfb644f66e382827159a24147c1db641
BLAKE2b-256 95efcf6214c69707be3040c97dc11234f79578f28548785b4a8ab92cfa249905

See more details on using hashes here.

File details

Details for the file sqlfluff_templater_dataform-0.1.14-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlfluff_templater_dataform-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 6dd7a65e62514237c68b3e2d4abc628162a9fbd4040f3167d987f66e03f75f39
MD5 286eb95ff1769abe53892bf16e834aa4
BLAKE2b-256 087c82ce7f26ac0610dce15283311f9da09e6a0475f030331d7d3d327c863b80

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page