-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (66 loc) · 1.27 KB
/
pyproject.toml
File metadata and controls
75 lines (66 loc) · 1.27 KB
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
[project]
name = "hf-daily-papers-tg"
version = "0.1.0"
description = "Telegram bot that sends daily papers from Hugging Face."
authors = [
{ name = "Roman Solomatin", email = "risolomatin@gmail.com" },
]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"httpx>=0.28.1",
"huggingface-hub>=1.1.5",
"pydantic>=2.12.4",
"pydantic-settings>=2.12.0",
"python-telegram-bot[rate-limiter]>=22.5",
]
[dependency-groups]
lint = [
"pre-commit>=4.5.0",
"ruff>=0.14.6",
"typos>=1.39.2",
]
tests = [
"pytest>=9.0.1",
"pytest-asyncio>=1.3.0",
"pytest-coverage>=0.0",
"vcrpy>=7.0.0",
]
type = [
"mypy>=1.18.2",
]
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore= [
"COM812",
"D",
"G",
]
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = [
"tests",
]
[tool.mypy]
python_version = "3.10"
strict = true
warn_redundant_casts = true
# align with mypy 2.0 release
warn_unreachable = true
local_partial_types = true
plugins = [
"pydantic.mypy",
]
mypy_path = "src/"
disable_error_code = ["override"]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true