-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
116 lines (102 loc) · 3.2 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
[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 = "[email protected]" },
{ name = "drendog" },
{ name = "Helias" },
{ name = "Herbrant" },
{ name = "alepiaz" },
{ name = "TaToTanWeb" },
{ name = "FilippoMarletta" },
]
maintainers = [
{ name = "TendTo", email = "[email protected]" },
{ 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.10.4",
"cryptography==43.0.1",
"python-telegram-bot==21.6",
"pytz==2024.2",
"PyYAML==6.0.2",
]
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"]
# 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]
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"
# 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",
]
[tool.pylint.format]
max-line-length = 120
[tool.pylint.checker]
max-args = 7
[tool.pylint.similarities]
min-similarity-lines = 6