-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (141 loc) · 4.32 KB
/
Copy pathpyproject.toml
File metadata and controls
159 lines (141 loc) · 4.32 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
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
[build-system]
requires = ["setuptools>=46.1.0", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"
# Metadata of the project
[project]
name = "telegram-spotted-dmi-bot"
description = "Telegram-SpottedDMI-Bot is the platform that powers @Spotted_DMI_Bot, a Telegram bot that let students send an anonymous message to the channel community"
readme = "README.md"
requires-python = ">=3.10"
license.file = "LICENSE"
authors = [
{ name = "TendTo", email = "casablancaerneto@gmail.com" },
{ name = "drendog" },
{ name = "Helias" },
{ name = "Herbrant" },
{ name = "alepiaz" },
{ name = "TaToTanWeb" },
{ name = "FilippoMarletta" },
]
maintainers = [
{ name = "TendTo", email = "casablancaerneto@gmail.com" },
{ name = "drendog" },
{ name = "Helias" },
{ name = "alepiaz" },
{ name = "TaToTanWeb" },
]
keywords = ["python", "telegram", "bot", "spotted", "dmi", "unict"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Topic :: Communications :: Chat",
"Operating System :: OS Independent",
]
dependencies = [
"APScheduler==3.11.1",
"cryptography==48.0.1",
"python-telegram-bot==22.5",
"pytz==2025.2",
"PyYAML==6.0.3",
"pyzipper==0.4.0",
]
dynamic = ['version']
# All the optional dependencies of the project
# Can be installed with `pip install telegram-spotted-dmi-bot[dependency]`
# e.g. `pip install telegram-spotted-dmi-bot[test]`
[project.optional-dependencies]
test = ["pytest", "pytest-asyncio", "pytest-cov", "pytest-mock"]
lint = ["pylint", "black", "isort", "flake8", "mypy", "types-PyYAML"]
# URLs of the project
[project.urls]
Homepage = "https://unict-dmi.github.io/Telegram-SpottedDMI-Bot/"
Documentation = "https://unict-dmi.github.io/Telegram-SpottedDMI-Bot/api/modules"
Repository = "https://github.com/UNICT-DMI/Telegram-SpottedDMI-Bot"
Changelog = "https://github.com/UNICT-DMI/Telegram-SpottedDMI-Bot/blob/main/.github/CHANGELOG.md"
# Entry points of the package
[project.scripts]
spotted = "spotted.__main__:main"
run_sql = "spotted.scripts.run_sql:main"
f_crypto = "spotted.scripts.f_crypto:main"
# Setuptool configuration (build system)
[tool.setuptools]
include-package-data = true
package-dir = { "" = "src" }
# Automatic versioning based on git tags
[tool.setuptools_scm]
version_file = "src/spotted/_version.py"
# Pytest configuration (test runner)
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
"--cov=spotted",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-fail-under=80",
"--verbose",
]
testpaths = ["tests"]
# Black configuration (code formatter)
[tool.black]
target-version = ['py38', 'py39', 'py310', 'py311']
line-length = 120
include = '(src|tests)\/.*\.py'
# Isort configuration (import sorter)
[tool.isort]
profile = "black"
skip = ["_version.py"]
# Pylint configuration (code linter)
[tool.pylint.MASTER]
ignore = ['tests', '_version.py']
fail-under = '10.0'
[tool.pylint.'MESSAGES CONTROL']
disable = [
"missing-module-docstring",
"too-few-public-methods",
"too-many-positional-arguments",
"line-too-long",
]
[tool.pylint.format]
max-line-length = 120
[tool.pylint.checker]
max-args = 7
[tool.pylint.similarities]
min-similarity-lines = 6
# Mypy configuration (static type checker)
[tool.mypy]
python_version = "3.10"
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = false
warn_no_return = true
strict_equality = true
explicit_package_bases = true
mypy_path = "src"
namespace_packages = true
[[tool.mypy.overrides]]
module = [
"telegram.*",
"telegram_api",
"telegram_simulator",
"pyzipper.*",
"pytest_asyncio.*",
"APScheduler.*",
"yaml",
"pytz",
"pytest",
]
ignore_missing_imports = true
# Handlers can assume certain values are not None in their context
[[tool.mypy.overrides]]
module = ["spotted.handlers.*"]
disable_error_code = ["arg-type", "union-attr", "operator", "index"]
[[tool.mypy.overrides]]
module = ["tests.*"]
disable_error_code = ["arg-type", "union-attr", "misc", "return-value", "assignment", "typeddict-item", "has-type", "attr-defined", "dict-item"]