-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
72 lines (64 loc) · 1.65 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 = "app"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = [
"atoti[jdbc]",
"httpx",
"pandas",
"pydantic",
"pydantic-settings",
]
[tool.mypy]
files = "app,tests" # Remove once https://github.com/python/mypy/issues/10428 is fixed.
strict = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = ["docker", "docker.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--strict-markers"
asyncio_default_fixture_loop_scope = "session"
asyncio_mode = "auto"
filterwarnings = ["error"]
[tool.ruff.lint]
ignore = [
"COM812", # Covered by the formatter.
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D203",
"D213",
"E501",
"E741", # `l` is used for level (consistency with `h` for hierarchy and `m` for measure).
"EM102", # Not worth the annoyance.
"ISC001", # Covered by the formatter.
"PLC0414", # Redundant imports are used for re-exporting (See https://peps.python.org/pep-0484/#stub-files).
"S101", # `assert` is useful when used correctly (https://realpython.com/python-assert-statement).
"TCH", # Pydantic needs to resolve type annotations at runtime.
"TRY003", # Not worth the annoyance.
]
select = ["ALL"]
[tool.ruff.lint.flake8-import-conventions]
banned-from = ["atoti", "pandas"]
[tool.ruff.lint.flake8-import-conventions.aliases]
atoti = "tt"
pandas = "pd"
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.uv]
dev-dependencies = [
"docker",
"mypy",
"pandas-stubs",
"pytest",
"pytest-asyncio",
"ruff",
]