generated from ilkersigirci/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
208 lines (179 loc) · 4.6 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
[project]
name = "podflix"
version = "0.1.0"
description = "Chat with your podcast"
readme = "README.md"
requires-python = ">=3.11,<3.13"
authors = [
{name = "İlker SIĞIRCI", email = "[email protected]"},
]
maintainers = [
{name = "İlker SIĞIRCI", email = "[email protected]"},
]
keywords = [
"podflix"
]
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"aiosqlite>=0.20.0",
"asyncpg>=0.30.0",
"boto3>=1.35.92",
"chainlit>=2.0.1",
"huggingface-hub>=0.27.0",
"langchain>=0.3.13",
"langchain-community>=0.3.13",
"langchain-openai>=0.2.14",
"langfuse>=2.57.2",
"langgraph>=0.2.60",
"loguru>=0.7.3",
"psycopg2-binary>=2.9.10",
"pydantic-settings>=2.7.0",
]
[tool.uv]
default-groups = ["dev", "doc", "test"]
[tool.pytest.ini_options]
minversion = "7.0.0"
asyncio_mode = "auto"
# TODO: Make them inherit from yaml file
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)-20s :: %(name)-8s :: %(levelname)-8s :: %(filename)s:%(lineno)d - (%(funcName)s) :: %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
testpaths = ["tests"]
addopts = [
"--import-mode=importlib",
"--color=yes",
"--verbose",
# "--durations=0",
# "--strict-markers",
# "--doctest-modules",
# NOTE: cov is not working with pycharm debugger. Enable it later!
# "--cov podflix",
# "--cov-report=xml",
# "--cov-report html",
]
[tool.ruff]
# target-version = "py311"
line-length = 88
src = ["src"]
respect-gitignore = true
# extend-include = []
extend-exclude = [
"docs",
# "tests",
]
# [tool.ruff.flake8-quotes]
# inline-quotes = "single"
# multiline-quotes = "double"
# docstring-quotes = "double"
[tool.ruff.format]
skip-magic-trailing-comma = false
# indent-style = "space"
# preview = true
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"C9", # mccabe
"D", # flake8-docstrings
"E", # pycodestyle errors (default)
"F", # pyflakes (default)
"I", # isort
"PD", # pandas-vet
"PIE", # pie
"PL", # pylint
"PTH", # pathlib
"Q", # flake8-quotes
"RET", # return
"RUF", # Enable all ruff-specific checks
"SIM", # simplify
"S307", # eval
"T20", # (disallow print statements) keep debugging statements out of the codebase
"W", # pycodestyle warnings
"ASYNC" # async
]
ignore = [
"E501", # Line too long, handled by ruff formatter
"D107", # "Missing docstring in __init__",
]
unfixable = [
"F401" # Unused imports.
]
#extend-select = []
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"src/podflix/gui/*.py" = ["D"]
"*.ipynb" = ["D", "T20"] # Disable docstring and print checks for notebooks
# 'podflix/__init__.py' = ['F405', 'F403']
# [tool.ruff.lint.flake8-import-conventions.extend-aliases]
# some_alias = ""
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
combine-as-imports = true
# force-wrap-aliases = true
# known-first-party = ["SomeLibrary"]
# known-third-party = ["SomeLibrary"]
[tool.coverage.run]
source = ['src/podflix']
branch = true
context = '${CONTEXT}'
[tool.coverage.report]
precision = 2
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError',
'if TYPE_CHECKING:',
'@overload',
]
# show_missing = True
# [tool.coverage.paths]
# source = [
# 'src/podflix/',
# ]
# [build-system]
# requires = ["uv>=0.5.0,<1.0.0"]
# build-backend = "uv" # FIXME: Only builds source distribution, not wheel
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"ipykernel>=6.29.5",
"mypy>=1.13.0",
"pre-commit>=4.0.1",
"ruff==0.8.6",
# "scalene~=1.5.21.2",
]
doc = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.5.42",
"mkdocstrings[python]>=0.26.2",
# "mdx-include",
# "mkdocs-markdownextradata-plugin",
]
test = [
"pytest-cov>=5.0.0",
"pytest-rerunfailures>=14.0",
"pytest-xdist>=3.6.1",
"pytest>=8.3.3",
# "pytest-timeout",
"pytest-asyncio>=0.25.1",
"moto[s3]>=5.0.25",
]