-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
55 lines (48 loc) · 1.59 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
[project]
name = "eddrit"
version = "0.9.1"
description = "Alternative Reddit frontend"
authors = [
{ name = "corenting", email = "corenting@gmail.com" },
]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.13,<4.0"
dependencies = [
"aiofiles (>=24.0.0,<25.0.0)",
"environs (>=11.0.0,<12.0.0)",
"gunicorn (>=23.0.0,<24.0.0)", # if needed for deployment configs
"httpx[http2] (>=0.28.1,<1.0.0)",
"jinja2 (>=3.1.5,<4.0.0)",
"loguru (>=0.7.0,<1.0.0)",
"lxml (>=5.3.0,<6.0.0)",
"python-multipart (>=0.0.20,<1.0.0)", # required by starlette for the form (as used in settings page)
"starlette (>=0.45.2,<1.0.0)",
"timeago (>=1.0.0,<2.0.0)",
"tldextract (>=5.1.3,<6.0.0)",
"uvicorn[standard] (>=0.34.0,<1.0.0)",
"valkey (>=6.0.0,<7.0.0)",
]
[tool.poetry.group.dev.dependencies]
coverage = {version = "*", extras = ["toml"]}
pyright = "*"
pytest = "*"
pytest-cov = "*"
ruff = "*"
[tool.ruff]
target-version = "py313"
[tool.ruff.lint]
# Enable pycodestyle (E), Pyflakes (F), flake8-print (T20), ruff rules (RUF),
# flake8-comprehensions (C4), flake8-datetimez (DTZ), isort (I), pep8-naming (N)
# pyupgrade (UP), flake8-async (ASYNC), flake8-bandit (S), perflint (PERF),
# tryceratops (SIM)
select = ["E", "F", "T20", "RUF", "C4", "DTZ", "I", "N", "UP", "ASYNC", "S", "PERF", "SIM"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"app.py" = ["S104"] # binding on all interfaces for dev
[tool.coverage.run]
omit = ["eddrit/config.py"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"