-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
52 lines (45 loc) · 1.4 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
[tool.poetry]
name = "eddrit"
version = "0.8.9"
description = "Alternative Reddit frontend"
authors = ["corenting <corenting@gmail.com>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.13"
aiofiles = "^24"
environs = "^11.0.0"
gunicorn = {version = "^23.0.0"} # if needed for deployment configs
httpx = {version = "^0.27.0", extras = ["http2"]}
Jinja2 = "^3.1.4"
loguru = "^0.7.0"
lxml = "^5.3.0"
python-multipart = "^0.0.17" # for settings form
starlette = "^0.41.2"
timeago = "^1.0.16"
tldextract = "^5.1.3"
uvicorn = {version = "^0.32.0", extras = ["standard"]}
valkey = {version = "^6.0.2"}
[tool.poetry.dev-dependencies]
coverage = {version = "*", extras = ["toml"]}
pyright = "*"
pytest = "*"
pytest-cov = "*"
ruff = "*"
[tool.ruff]
target-version = "py312"
[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"