Skip to content

Commit

Permalink
Update website/docs/best-practices/how-we-style/5-how-we-style-our-ya…
Browse files Browse the repository at this point in the history
…ml.md
  • Loading branch information
runleonarun authored Dec 13, 2024
1 parent 1e44a5e commit 96fa458
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ id: 5-how-we-style-our-yaml

- 2️⃣ Indents should be two spaces
- ➡️ List items should be indented
- 🔠 List items with a single entry can be a string. For example `'select': 'other_user'`, but it's best practice to provide the argument as an explicit list. For example `'select': ['other_user']
- 🔠 List items with a single entry can be a string. For example, `'select': 'other_user'`, but it's best practice to provide the argument as an explicit list. For example, `'select': ['other_user']`
- 🆕 Use a new line to separate list items that are dictionaries where appropriate
- 📏 Lines of YAML should be no longer than 80 characters.
- 🛠️ Use the [dbt JSON schema](https://github.com/dbt-labs/dbt-jsonschema) with any compatible IDE and a YAML formatter (we recommend [Prettier](https://prettier.io/)) to validate your YAML files and format them automatically.
Expand Down

0 comments on commit 96fa458

Please sign in to comment.