-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
129 lines (113 loc) · 2.36 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[project]
name = "Indexes"
version = "0.1.0"
description = "Brazil's economic indexes"
authors = [
{name = "Allainclair Flausino dos Santos", email = "[email protected]"},
]
dependencies = [
"babel>=2.15.0",
"litestar[jinja,opentelemetry]>=2.9.1",
"logfire>=0.46.1",
"pydantic>=2.8.0",
"pydantic-settings>=2.3.4",
"opentelemetry-instrumentation-httpx>=0.46b0",
"uvicorn>=0.30.1",
]
[project.optional-dependencies]
test = [
"coverage",
"pytest",
"pytest-asyncio",
# "setuptools",
]
lint = [
"ruff",
"mypy",
]
debug= [
"ipython",
"rich",
]
[tool.ruff]
line-length = 80
# Suggestions to add to select: EM
lint.select = [
"A",
"ARG",
"ANN", # Take care if there is conflict with mypy.
"ASYNC",
"B",
"BLE",
"COM",
"C4",
"C90",
# "DTZ", # https://docs.astral.sh/ruff/rules/#flake8-datetimez-dtz
"E",
"EM",
"EXE",
"F",
"FBT",
"FLY",
"FURB",
"G",
"I",
"ICN",
"INP",
"INT",
"ISC",
"LOG",
"N",
"PERF",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"SLOT",
"SLF",
"T10",
"T20",
"TCH",
"TD",
"TID",
"TRY",
"UP",
"W",
"YTT"
]
lint.ignore = [
"ANN101", # https://docs.astral.sh/ruff/rules/missing-type-self/
"ANN401", # https://docs.astral.sh/ruff/rules/any-type/
# The following rules may cause conflicts when used with the formatter: `COM812`.
"COM812", # https://docs.astral.sh/ruff/rules/missing-trailing-comma/
# The following rules may cause conflicts when used with the formatter: `ISC001`
"ISC001", # https://docs.astral.sh/ruff/rules/single-line-implicit-string-concatenation/
# PLR2004 Magic value used in comparison
"PLR2004", # https://docs.astral.sh/ruff/rules/magic-value-comparison/
"S101", # https://docs.astral.sh/ruff/rules/assert/"
# TD003 Missing issue link on the line following this TODO
"TD003", # https://docs.astral.sh/ruff/rules/missing-todo-link/
# The `format.indent-style="tab"` option is incompatible with `W191`, which lints against all uses of tabs
"W191", # https://docs.astral.sh/ruff/rules/tab-indentation/
]
lint.mccabe.max-complexity = 5
[tool.ruff.format]
quote-style = "double"
indent-style = "tab"
line-ending = "lf" # Use `\n` line endings for all files
[tool.ruff.lint.isort]
case-sensitive = true
split-on-trailing-comma = false
[tool.mypy]
strict = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
log_cli = true