forked from atoti/project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
90 lines (79 loc) · 2.19 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
[tool.poetry]
name = "app"
version = "0.1.0"
description = ""
authors = []
[tool.poetry.dependencies]
atoti = { extras = ["sql"], version = "*" }
pandas = "*"
pydantic = "*"
pydantic-settings = "*"
python = ">=3.9"
requests = "*"
typing-extensions = "*"
[tool.poetry.dev-dependencies]
docker = "*"
mypy = "*"
pandas-stubs = "*"
pytest = "*"
ruff = "*"
types-requests = "*"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
packages = "app,tests"
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]
filterwarnings = ["error"]
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
ignore = [
# Type checkers can infer the following `ANN` rules.
"ANN101",
"ANN102",
"COM812", # Covered by the formatter.
"E501",
"E741", # `l` is used for level (consistency with `h` for hierarchy and `m` for measure).
"EM101", # Not worth the annoyance.
"EM102", # Not worth the annoyance.
# The following `D` rules are unnecessary.
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D203",
"D213",
"F403", # Useful to reexport all public symbols from an imported modules in an `__init__.py`.
"ISC001", # Covered by the formatter.
"PLC0414", # Redundant imports are used for re-exporting (See https://peps.python.org/pep-0484/#stub-files).
"PT004", # Useless distinction.
"S101", # `assert` is useful when used correctly (https://realpython.com/python-assert-statement).
"TCH", # Circular dependencies of any kind must be avoided.
"TRY003", # Not worth the annoyance.
]
select = ["ALL"]
unfixable = [
"ERA001", # To prevent deleting code commented while debugging.
"F401", # To prevent deleting code commented while debugging.
"F841", # To prevent deleting code commented while debugging.
]
[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
required-imports = ["from __future__ import annotations"]