forked from rivenmedia/riven
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (127 loc) · 3.4 KB
/
pyproject.toml
File metadata and controls
133 lines (127 loc) · 3.4 KB
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[project]
name = "riven"
version = "1.0.0"
description = "Plex torrent streaming through Real Debrid and 3rd party services like Overseerr, Mdblist, etc."
authors = [{ name = "Riven Developers" }]
requires-python = "~=3.13.0"
readme = "README.md"
license = "GPL-3.0"
dependencies = [
"dill>=0.3.8,<0.4",
"requests[socks]>=2.32.5,<3",
"lxml>=5.1.0,<6",
"pydantic>=2.12.0,<3",
"fastapi>=0.110.0,<0.111",
"uvicorn[standard]>=0.30.6,<0.31",
"apscheduler>=3.10.4,<4",
"coverage>=7.6.8,<8",
"cachetools>=5.3.3,<6",
"loguru>=0.7.2,<0.8",
"opentelemetry-api>=1.25.0,<2",
"opentelemetry-sdk>=1.25.0,<2",
"opentelemetry-exporter-prometheus>=0.46b0,<0.47",
"prometheus-client>=0.20.0,<0.21",
"sqlalchemy>=2.0.31,<3",
"sqla-wrapper>=6.0.0,<7",
"alembic>=1.13.2,<2",
"psycopg2-binary>=2.9.9,<3",
"apprise>=1.8.1,<2",
"subliminal>=2.2.1,<3",
"jsonschema>=4.23.0,<5",
"scalar-fastapi>=1.0.3,<2",
"psutil>=7.1.0,<8",
"python-dotenv>=1.0.1,<2",
"requests-ratelimiter>=0.7.0,<0.8",
"requests-cache>=1.2.1,<2",
"kink>=0.8.1,<0.9",
"bencodepy>=0.9.5,<0.10",
"plexapi>=4.17.1,<5",
"pyfuse3>=3.4.0,<4",
"babel>=2.17.0,<3",
"httpx[http2,socks]>=0.28.1,<0.29",
"starlette>=0.37.2",
"rank-torrent-name>=1.9.3,<2",
"parsett>=1.8.2,<2",
"trio-util>=0.8.0",
"ordered-set>=4.1.0",
"lazy-imports>=1.1.0",
"python-multipart>=0.0.21",
]
[dependency-groups]
dev = [
"pyright>=1.1.352,<2",
"pyperf>=2.2.0,<3",
"pytest>=8.3.2,<9",
"pytest-mock>=3.14.0,<4",
"responses==0.25.3",
"pyfakefs>=5.4.1,<6",
"ruff>=0.13.3,<0.14",
"isort>=5.10.1,<6",
"codecov>=2.1.13,<3",
"testcontainers>=4.8.0,<5",
"mypy>=1.11.2,<2",
"requests-mock>=1.12.1,<2",
"black>=25.9.0,<26",
"pre-commit>=4.3.0,<5",
"openapi-generator-cli[jdk4py]>=7.17.0",
"types-lxml>=2025.8.25",
]
test = ["pytest>=8.3.2,<9"]
[tool.uv]
package = false
default-groups = [
"dev",
"test",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.isort]
profile = "black"
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules/
ignore = [
"PLR0913", # flask8-bugbear: Too many arguments for a method or function
"PLR0911", # flask8-bugbear: Too many return statements
"PLR2004", # flake8-bugbear: Magic value used in comparison
"S104", # flake8-bandit: Possible binding to all interfaces
"S108", # flake8-bandit: Probable insecure usage of temp file/directory
"S311", # flake8-bandit: Standard pseudo-random generators are not suitable for security/cryptographic purposes
"S101", # ruff: Ignore assert warnings on tests
"RET505", #
"RET503", # ruff: Ignore required explicit returns (is this desired?)
"SLF001", # private member accessing from pickle
"B904", # ruff: ignore raising exceptions from except for the API
]
extend-select = [
"I", # isort
"C90", # mccabe complexity
"B", # flake8-bugbear
"PL", # pycodestyle
"S", # flake8-bandit
"T10", # flake8-debugger
"PIE", # flake8-pie
"T20", # flake8-print
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
]