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.12.tar.gz (10.4 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.12-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for sqlfluff_templater_dataform-0.1.12.tar.gz
Algorithm Hash digest
SHA256 91721b500fd4b2a356d55cc1a723dda0aa8f8a1895a0d234bb6bbecb67e92e4a
MD5 680c0c6f5240ede188a3c24db501281a
BLAKE2b-256 840cc67360100bd1e95abea326576554a6d12cf8b9340daf0ef06591a54d09ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sqlfluff_templater_dataform-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 657ac6512db505c1c0babf6a9c8f293f9a741808d99de7959b6e8bd07846a648
MD5 b93082db7cb3a4aece5a50eda5a64036
BLAKE2b-256 95f7f3cf04912db6c7da4f84680424ca2731ee3a4c88d5e3d2dcbd46a6038749

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