-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
79 lines (64 loc) · 1.8 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
73
74
75
76
77
78
79
[project]
name = "kingfisher-summarize"
version = "0.0.0"
[tool.ruff]
line-length = 119
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", "C901", "COM812", "D203", "D212", "D415", "EM", "ISC001", "PERF203", "PLR091", "Q000",
"D1",
"DTZ",
"PTH",
]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["copyright"]
[tool.ruff.lint.flake8-unused-arguments]
ignore-variadic-names = true
[tool.ruff.lint.per-file-ignores]
"docs/conf.py" = ["D100", "INP001"]
"tests/*" = [
"ARG001", "D", "FBT003", "INP001", "PLR2004", "S", "TRY003",
]
"manage.py" = [
"ARG001", # click
"D301", # click escapes
"PLW2901",
"TRY003", # errors
]
"migrations/*" = ["INP001"]
[tool.coverage.run]
concurrency = ["multiprocessing"]
parallel = true
sigterm = true
[tool.pytest.ini_options]
log_level = "INFO"
[tool.sqlfluff.core]
dialect = "postgres"
large_file_skip_byte_limit = 40000
exclude_rules = [
# Preferences
"ST07", # structure.using
# Preserve existing column order
"L034", # structure.column_order
# Require (some) manual fixes
"AM04", # ambiguous.column_count
"LT05", # layout.long_lines
"RF02", # references.qualification
"RF04", # references.keywords
]
[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"