-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpyproject.toml
200 lines (185 loc) · 4.3 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
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "MangAdventure"
description = "A simple manga hosting CMS written in Django."
requires-python = ">=3.8"
license = {text = "MIT"}
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.1",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Content Management System",
]
keywords = ["manga", "scanlation", "reader"]
dynamic = ["version", "readme"]
dependencies = [
"django~=4.2.8",
"djangorestframework>=3.14",
"django-allauth>=0.57",
"Pillow>=10.1",
# because asottile is a jackass
# https://github.com/sass/libsass-python/pull/400
"libsass-bin>=0.22",
"yaenv~=1.4.4; python_version=='3.8'",
"yaenv~=1.5.3; python_version=='3.9'",
"yaenv~=1.6.4; python_version>='3.10'"
]
[project.optional-dependencies]
dev = [
"django-stubs~=4.2",
"djangorestframework-stubs>=3.14",
"flake8~=6.1",
# because asottile is a jackass, again
# https://github.com/PyCQA/flake8/issues/234
"flake8-pyproject>=1.2",
"isort>=5.12",
"bandit~=1.7",
"mypy~=1.7",
"pytest~=7.4",
"pytest-cov>=4.1",
"pytest-django>=4.7"
]
docs = [
"sphinx~=5.3.0",
"sphinx-rtd-theme>=1.3",
"sphinx-autodoc-typehints~=1.19.5"
]
mysql = ["mysqlclient>=2.2"]
pgsql = ["psycopg>=3.1"]
redis = ["redis>5.0"]
memc = ["pylibmc>=1.6"]
csp = ["django-csp>=3.7"]
sentry = ["sentry-sdk>=1.34"]
debug = ["django-debug-toolbar>=4.2"]
uwsgi = ["uwsgi~=2.0"]
[[project.authors]]
name = "evangelos-ch"
email = "[email protected]"
[[project.authors]]
name = "ObserverOfTime"
email = "[email protected]"
[project.scripts]
mangadventure = "MangAdventure.__main__:run"
[project.urls]
Homepage = "https://github.com/mangadventure/MangAdventure"
Documentation = "https://mangadventure.readthedocs.io"
[tool.setuptools.dynamic.version]
attr = "MangAdventure.__version__"
[tool.setuptools.dynamic.readme]
file = "README.md"
content-type = "text/x-markdown"
[tool.flake8]
ignore = "W504"
show_source = true
max_line_length = 80
exclude = [
".git/*",
".venv/*",
".eggs/*",
".mypy_cache/*",
"__pycache__/*",
"docs/*",
"build/*",
"dist/*"
]
[tool.isort]
balanced_wrapping = true
combine_as_imports = true
default_section = "THIRDPARTY"
known_django = "django"
known_mangadv = "MangAdventure"
length_sort = false
multi_line_output = 6
known_first_party = [
"api",
"config",
"groups",
"reader",
"users"
]
sections = [
"FUTURE",
"STDLIB",
"DJANGO",
"THIRDPARTY",
"MANGADV",
"FIRSTPARTY",
"LOCALFOLDER"
]
skip = [
".git",
".venv",
".eggs",
".mypy_cache",
"__pycache__",
"docs",
"build",
"dist"
]
[tool.mypy]
show_error_codes = true
warn_unused_ignores = false
ignore_missing_imports = true
disable_error_code = ["misc", "override"]
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
[tool.bandit]
exclude_dirs = [
"./.git/*",
"./.venv/*",
"./.eggs/*",
"./.mypy_cache/*",
"./__pycache__/*",
"./docs/*",
"./build/*",
"./dist/*",
"./*/tests/*"
]
skips = [
"B104", # 0.0.0.0 is only used in debug mode
"B301", # pickled data is verified with HMAC
"B403", # pickled data is verified with HMAC
"B405", # covered by B314 (xml parse)
"B703", # covered by B308 (mark_safe)
]
[tool.django-stubs]
django_settings_module = "MangAdventure.settings"
[tool.pytest.ini_options]
addopts = "-rfsx --cov=. --cov-report=term"
norecursedirs = ["docs", "*/migrations"]
filterwarnings = [
"ignore:Schema component:UserWarning",
"ignore::django.utils.deprecation.RemovedInDjango50Warning"
]
DJANGO_SETTINGS_MODULE = "MangAdventure.tests.settings"
[tool.coverage.run]
relative_files = true
omit = [
"*tests/*",
"*migrations/*",
".venv/*",
".eggs/*",
"env/*",
"docs/*",
"build/*",
"dist/*",
"setup.py",
"*wsgi.py",
"*settings.py",
"*createsuperuser.py",
"*apps.py",
"*logs.py",
"*__main__.py"
]