-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (104 loc) · 2.8 KB
/
pyproject.toml
File metadata and controls
116 lines (104 loc) · 2.8 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
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
[project]
name = "botspot"
version = "0.10.38"
description = ""
readme = "README.md"
authors = [
{name = "Petr Lavrov", email = "me@petrlavrov.com"},
]
requires-python = "<4.0,>=3.12"
dependencies = [
"loguru>=0.7",
"toml>=0.10",
"python-dotenv",
"aiogram>=3.19",
"pydantic-settings<3.0.0,>=2.6.0",
"pydantic<3.0,>=2.10",
]
[dependency-groups]
extras = [
"apscheduler<4.0.0,>=3.10.4",
"pymongo>=4.9",
"litellm<2.0,>=1.63",
"telethon<2.0.0,>=1.38.1",
"aioboto3<15.0.0,>=14.1.0",
"mistune<4.0.0,>=3.1.3",
"calmlib @ git+https://github.com/calmmage/calmlib.git@main",
"pyrogram @ git+https://github.com/KurimuzonAkuma/pyrogram.git@master",
]
test = [
"pytest>=8.3.5",
"isort<7.0.0,>=6.0.0",
"vulture<3.0,>=2.14",
"pytest-cov<7.0.0,>=6.1.1",
"pytest-asyncio<2.0.0,>=1.0.0",
"pytest-mock<4.0.0,>=3.14.1",
#pytest-mongodb = "*"
"pyupgrade<4.0.0,>=3.20.0",
"pyright<2.0.0,>=1.1.401",
"ruff<1.0.0,>=0.11.12",
"lizard>=1.21.2",
]
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.25",
]
dev = [
"jupyter>=1.0.0",
"pre-commit>=3.8.0",
"tqdm",
#jupyter-nbextensions-configurator = "*"
#jupyter_contrib_nbextensions = "*"
## data analysis, research
#pandas = ">=2.0.0" # Data manipulation and analysis
#seaborn = "*" # Statistical data visualization
#bokeh = "*" # Interactive visualizations
#matplotlib = "*" # Plotting library
#numpy = "*" # Numerical computing
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Allows to install dependencies directly from github - e.g. my personal libraries
[tool.hatch.metadata]
allow-direct-references = true
# Define package properly
[tool.hatch.build.targets.wheel]
packages = ["botspot"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
asyncio_mode = "auto"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests, requiring external services",
]
xvs = true
addopts = "--tb=short --no-header -v"
[tool.coverage.run]
source = ["botspot"]
omit = [
"tests/*",
"**/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass",
"raise ImportError",
]
fail_under = 49
show_missing = true
[tool.ruff]
line-length = 100
[template]
version = "0.3.0" # optimize pyproject dependencies
url = "https://github.com/calmmage/python-project-template.git"
author = "Petr Lavrov <petrlavrov@calmmage.com>"
description = "A template for creating a bot using calmapp and bot-lib"