-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
83 lines (72 loc) · 1.9 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "web-portal"
dynamic = ["version"]
description = ''
readme = "README.md"
requires-python = ">=3.11"
license = "AGPL-3.0-only"
keywords = []
authors = [
{ name = "Leo Spratt", email = "[email protected]" },
]
classifiers = [
"Private :: Do Not Upload",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"quart~=0.19.6",
"quart-auth~=0.10.1",
"tortoise-orm[aiomysql]~=0.21.7",
"pydantic~=2.9.2",
"pydantic-settings~=2.5.2",
"web-health-checker~=1.3.1",
"packaging~=24.1",
]
[tool.hatch.envs.default.scripts]
serve = "hypercorn \"web_portal.main:create_app()\""
[tool.hatch.envs.docs]
dependencies = [
"mkdocs~=1.6.1",
"mkdocstrings[python]~=0.26.2",
"mkdocs-material~=9.5.41",
]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build --clean"
serve = "mkdocs serve"
[tool.hatch.envs.dev]
dependencies = [
"pytest~=8.3.3",
"pytest-asyncio~=0.24.0",
"pytest-env~=1.1.5",
]
[tool.hatch.envs.dev.scripts]
unit-test = "pytest ./tests"
lint = "hatch fmt --check"
[project.urls]
Documentation = "https://webportal.docs.enchantedcode.co.uk/"
Issues = "https://github.com/enchant97/web-portal/issues"
Source = "https://github.com/enchant97/web-portal"
[tool.hatch.version]
path = "web_portal/__init__.py"
[tool.ruff]
line-length=100
src = ["web_portal", "tests"]
lint.ignore = ["TID252", "EM101", "EM102", "S101", "TRY003", "N818"]
[tool.ruff.lint.per-file-ignores]
"web_portal/plugin_api.py" = ["F401"]
"scripts/hash_password.py" = ["T201"]
[tool.pytest.ini_options]
asyncio_mode="strict"
asyncio_default_fixture_loop_scope = "session"
env = [
"DB_URI=sqlite://:memory:",
"DATA_PATH=./data",
"SECRET_KEY=pytest-testing",
"SECURE_COOKIES=0",
]