-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
58 lines (46 loc) · 1.73 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[tool.black]
line_length = 119
[tool.sqlfluff.core]
dialect = "postgres"
# FIXME: In the long run we should include "references.consistent,references.from,references.qualification" rules.
exclude_rules = "ambiguous.distinct,layout.long_lines,references.special_chars,convention.left_join,references.consistent,references.from,references.qualification"
templater = "dbt"
max_line_length = 119
[tool.sqlfluff.layout.type.alias_expression]
# https://docs.sqlfluff.com/en/stable/layout.html#aligned-elements
# We want non-default spacing _before_ the alias expressions.
spacing_before = "align"
# We want to align them within the next outer select clause.
# This means for example that alias expressions within the FROM
# or JOIN clause would _not_ be aligned with them.
align_within = "select_clause"
# The point at which to stop searching outward for siblings, which
# in this example would likely be the boundary of a CTE. Stopping
# when we hit brackets is usually a good rule of thumb for this
# configuration.
align_scope = "bracketed"
[tool.sqlfluff.rules.capitalisation.keywords]
capitalisation_policy = "lower"
[tool.sqlfluff.rules.capitalisation.functions]
extended_capitalisation_policy = "lower"
[tool.sqlfluff.rules.capitalisation.literals]
capitalisation_policy = "lower"
[tool.sqlfluff.rules.references.special_chars]
additional_allowed_characters = "àéè '-"
[tool.pytest.ini_options]
addopts = "--ignore=dbt/packages"
[tool.ruff]
line-length = 119
[tool.ruff.lint]
exclude = ["dbt/packages/*"]
ignore = []
# see prefixes in https://docs.astral.sh/ruff/rules/
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
]
[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2