-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
72 lines (58 loc) · 1.75 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[project]
name = "notebooks-ocds"
version = "0.0.0"
[tool.black]
line-length = 119
[tool.ruff]
line-length = 119
target-version = "py310"
extend-include = ["*.ipynb"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", "C901", "COM812", "D203", "D212", "D415", "EM", "ISC001", "PERF203", "PLR091", "Q000",
"D1",
"ERA001", # commented-out code
]
[tool.ruff.lint.flake8-unused-arguments]
ignore-variadic-names = true
[tool.ruff.lint.per-file-ignores]
"component_*" = ["F821"]
"template_*" = ["E501", "F401"]
"*.ipynb" = ["ARG001"] # $file_name
[tool.sqlfluff.core]
dialect = "postgres"
templater = "placeholder"
exclude_rules = [
# Preferences
"ST07", # structure.using
# Preserve existing column order
"L034", # structure.column_order
# Easy fixes
"AL03", # aliasing.expression
"ST05", # structure.subquery
# Long fixes
"AM04", # ambiguous.column_count
"CV08", # convention.left_join
"RF02", # references.qualification
"RF04", # references.keywords
# https://github.com/sqlfluff/sqlfluff/issues/4623#issuecomment-2401209085 >3.2.4
"AL05",
]
[tool.sqlfluff.templater.placeholder]
param_style = "colon"
collection_ids = "(1)"
[tool.sqlfluff.rules.capitalisation.keywords]
capitalisation_policy = "upper"
[tool.sqlfluff.rules.capitalisation.literals]
capitalisation_policy = "upper"
[tool.sqlfluff.rules.capitalisation.functions]
extended_capitalisation_policy = "lower"
[tool.sqlfluff.rules.capitalisation.identifiers]
extended_capitalisation_policy = "lower"
[tool.sqlfluff.rules.capitalisation.types]
extended_capitalisation_policy = "lower"
[tool.sqlfluff.rules.convention.casting_style]
preferred_type_casting_style = "shorthand"
[tool.sqlfluff.rules.convention.not_equal]
preferred_not_equal_style = "ansi"