-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
107 lines (91 loc) · 2.61 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
[tool.poetry]
name = "gimvicurnik"
description = "An API for a school timetable, substitutions and menus at Gimnazija Vič"
readme = "README.md"
license = "GPL-3.0-or-later"
version = "0.0.0"
homepage = "https://urnik.gimvic.org/"
repository = "https://github.com/filips123/GimVicUrnik"
documentation = "https://github.com/filips123/GimVicUrnik/blob/main/README.md"
authors = [
"filips123 <[email protected]>",
"ChristofferNorgaard"
]
keywords = [
"timetables",
"substitutions",
"menus",
"gimvic"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Topic :: Database",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Utilities"
]
[tool.poetry.scripts]
gimvicurnik = "gimvicurnik.__main__:main"
[tool.poetry.dependencies]
python = "^3.10"
PyYAML = "^6.0.2"
flask = "^3.1.0"
click = "^8.1.8"
attrs = "~24.3.0"
cattrs = "~24.1.2"
requests = "^2.32.3"
SQLAlchemy = "^2.0.36"
pdfplumber = "^0.11.4"
openpyxl = "^3.1.5"
mammoth = "^1.8.0"
icalendar = "^6.1.0"
beautifulsoup4 = { version = "^4.12.3", extras = ["lxml"] }
# Optional support for Sentry integration
sentry-sdk = { version = "^2.19.2", extras = ["flask", "sqlalchemy", "pure_eval"], optional = true }
# Optional support for different databases
PyMySQL = { version = "^1.1.1", optional = true }
mysqlclient = { version = "^2.2.6", optional = true }
psycopg2 = { version = "^2.9.10", optional = true }
[tool.poetry.group.dev.dependencies]
mypy = "^1.14.0"
ruff = "^0.8.4"
types-pyyaml = "^6.0.12"
types-openpyxl = "^3.1.5"
types-requests = "^2.32.0"
types-beautifulsoup4 = "^4.12.0"
[tool.poetry.extras]
sentry = ["sentry-sdk"]
mysql-py = ["PyMySQL"]
mysql-c = ["mysqlclient"]
pgsql = ["psycopg2"]
[tool.ruff]
line-length = 110
[tool.ruff.lint]
select = ["F", "E", "W", "UP", "B", "G", "RUF"]
ignore = ["E203", "E501", "F401"]
[tool.black]
line-length = 110
[tool.mypy]
python_version = "3.10"
show_column_numbers = true
show_error_codes = true
allow_redefinition = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = true
warn_unreachable = true
[tool.poetry-dynamic-versioning]
enable = true
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api"