-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (143 loc) · 4.02 KB
/
Copy pathpyproject.toml
File metadata and controls
155 lines (143 loc) · 4.02 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[project]
name = "comicarr"
version = "0.27.1"
description = "Automated Comic Book Manager"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"APScheduler>=3.6.3",
"alembic>=1.16.0",
"bcrypt>=5.0.0",
"beautifulsoup4>=4.8.2",
"cfscrape>=2.0.8",
"cryptography>=46.0.5",
"fastapi>=0.115.0",
"feedparser>=5.2.1",
"mokkari>=3.0.0",
"natsort>=3.5.2",
"openai>=2.30.0",
"packaging>=22.0",
"Pillow>=12.3.0",
"pycryptodome>=3.19.0",
"PyJWT>=2.13.0",
"python-multipart>=0.0.32",
"pytz>=2019.3",
"rarfile>=4.0",
"requests[socks]>=2.22.0",
"simplejson>=3.17.0",
"SQLAlchemy>=2.0",
"sse-starlette>=3.0.0",
"soupsieve>=2.8.4",
"tenacity>=8.2.3",
"tzlocal>=2.0.0",
"urllib3>=2.7.0",
"user_agent2>=2021.12.11",
"uvicorn[standard]>=0.30.0",
]
[project.optional-dependencies]
postgres = ["psycopg2-binary>=2.9"]
mysql = ["mysqlclient>=2.1"]
mysql-pure = ["PyMySQL>=1.0"]
dev = [
"httpx>=0.27.0",
"pytest>=8.0.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.12.0",
"pytest-xdist>=3.5.0",
"pytest-asyncio>=0.23.0",
"responses>=0.25.0",
"freezegun>=1.4.0",
"factory-boy>=3.3.0",
"hypothesis>=6.100.0",
"pre-commit>=4.0.0",
"pyyaml>=6.0",
"ruff>=0.15.7",
"tomli>=2.0; python_version < '3.11'",
]
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["comicarr*"]
[tool.setuptools.package-data]
"comicarr._vendor" = ["**/LICENSE", "**/COPYING", "**/NOTICE"]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
"-ra",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.coverage.run]
branch = true
source = ["comicarr"]
omit = [
"comicarr/rtorrent_test_client.py",
"comicarr/dependency_check.py",
"comicarr/_vendor/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
show_missing = true
[tool.coverage.html]
directory = "coverage_html"
[tool.ruff]
target-version = "py310"
line-length = 120
exclude = ["comicarr/_vendor/**"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
]
ignore = [
"E501", # line too long (handled by formatter)
"E701", # multiple statements on one line (inherited)
"E721", # type comparison using == instead of is (inherited)
"E722", # bare except (inherited — to be fixed incrementally)
"F821", # undefined name (inherited — needs careful review)
"B005", # strip with multi-char (inherited)
"B007", # unused loop variable (inherited)
"B008", # do not perform function calls in argument defaults
"B015", # pointless comparison (inherited)
"B018", # useless expression (inherited)
"B034", # re.sub without flags (inherited)
"B904", # raise without from (inherited)
"C901", # too complex
"F501", # %-format invalid format string (inherited)
"F507", # %-format mismatch (inherited)
"F509", # %-format mismatch (inherited)
"F601", # membership test with list (inherited)
"F811", # redefined unused name (inherited)
"F823", # undefined local (inherited)
"W191", # indentation contains tabs (inherited)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["B", "C4"]
"comicarr/__init__.py" = ["F401"] # re-exports used by other modules
"comicarr/helpers.py" = ["E402"] # conditional import at line 5189
"comicarr/rsscheck.py" = ["F401"] # urllib3 import for side effects